symfony2.4 - hwioauthbundle and fosuserbundle - not playing well together? -


i'm trying manage classic fosuserbundle authentification hwioauthbundle authentification.

each work 'ok' alone. authenticate , see user in user table, without problem.

though when try validate user this:

 if( $this->container->get('security.context')->isgranted('is_authenticated_fully') )     {        $user = $this->get('security.context')->gettoken()->getuser();         ...     } 

$user fails hwioauthbundle (but not fosuserbundle):

if($user){....} 

i see token under hwioauthbundle created with:

hwi\bundle\oauthbundle\security\core\authentication\token\oauthtoken 

and fosuserbundle with:

symfony\component\security\core\authentication\token\usernamepasswordtoken 

but don't see why have impact...

i'm trying $user create local 'profile' can without problem when i'm authenticated fosuserbundle.

any insight appreciated. thanks.

this error , relatively basic.

my controller returning 'null' if($user){} forcing throw exception further on.

it looks securitycontext handles tokens fine.

thanks.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -