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
Post a Comment