Reputation: 422
How can I configure authentication and authorisation to my Symfony 3 app by Google Play Market Account? I tried to use FOSOAuthServerBundle for these purposes. The documentation tells to create a client using ClientManager in this way:
$clientManager = $this->getContainer()->get('fos_oauth_server.client_manager.default');
$client = $clientManager->createClient();
$client->setRedirectUris(array('http://www.example.com'));
$client->setAllowedGrantTypes(array('token', 'authorization_code'));
$clientManager->updateClient($client);
But no words, about where to put this code. But I am already have credentials which I got from Google Console. Is it possible to use them in order to login with Google Play Market account? How to bind them with custom authentication proWhere should I use these credintials? Are there any tutorials about this process in scope of Symfony 3?
Upvotes: 2
Views: 162
Reputation: 16695
The FOSOAuthServerBundle
is a server. What you need is a client.
You should try to use HWIOAuthBundle
instead or thephpleague/oauth2-client
. If none of these libraries fit on your needs, you may find other implementations on Packagist.
Upvotes: 1