Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony2 - HWI/OAuthBundle can't find user provider

Trying to connect facebook using HWI/OAuthBundle, following all of the steps that say in HWI/OauthBundle Doc, but it return error

There is no user provider for user "HWI\Bundle\OAuthBundle\Security\Core\User\OAuthUser"

Does anyone can explain for me why this happen and how to fix this problem?

like image 729
Wirata Adidharma Avatar asked Mar 27 '14 05:03

Wirata Adidharma


1 Answers

Add to security.yml

providers:                             
    hwi:                               
        id: hwi_oauth.user.provider    

or your custom user provider service

like image 142
SilvioQ Avatar answered Oct 21 '22 02:10

SilvioQ