Search code examples
playframework-2.0google-oauthsecuresocial

SecureSocial 2 with play 2 framework


I am trying to use SecureSocial 2. When I trying to use existing account e.g. Google it gives me error:

Error: invalid_client

scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
response_type=code redirect_uri=http://localhost:9000/authenticate/google
state=736c4f77-14e8-4cde-ac61-7df8796067ba
client_id=your_client_id

Please tell me what should I do to sort it out. Thanks a lot.


Solution

  • You have to register your app on Google, which will provide a client id and a client secret.

    Take a look at this doc from Google: https://developers.google.com/accounts/docs/OAuth2