Category : hwioauthbundle

I use HWIOAuthBundle for Symfony. HWIBundleOAuthBundleSecurityCoreAuthenticationProviderOAuthProvider.php has function "authenticate" where create and return OAuthToken. public function authenticate(TokenInterface $token){ … $token = new OAuthToken($oldToken->getRawToken(), $user->getRoles()); $token->setResourceOwnerName($resourceOwner->getName()); $token->setUser($user); $token->setAuthenticated(true); $token->setRefreshToken($oldToken->getRefreshToken()); $token->setCreatedAt($oldToken->getCreatedAt()); return $token; } I need set some attribute to this OAuthToken like : $token->setAttribute(‘name’ => ‘value’); How can i do this ? I use service with ..

Read more

I have created a facebook developper account in order to add a signup with facebook button but I get this error after following this tutorial Unexpected characters near ” resource_owners: any_name: type:facebook client_id:1654896674667347 client_secret:27804c48ab2159991982e49a70acbf68″ at line 93 (near “client_secret:27804c48ab2159991982e49a70acbf68”). config.yml hwi_oauth: firewall_names: [secured_area] resource_owners: any_name: type: facebook client_id: 1654896674667347 client_secret: 27804c48ab2159991982e49a70acbf68 security.yml secured_area: anonymous: ~ ..

Read more