Getting the following error when trying to login with google -oauth.
I, [2014-04-23T10:08:24.349056 #4905] INFO -- omniauth: (google_oauth2) Request phase initiated.
I, [2014-04-23T10:08:24.861288 #4905] INFO -- omniauth: (google_oauth2) Request phase initiated.
I, [2014-04-23T10:08:28.637438 #4905] INFO -- omniauth: (google_oauth2) Callback phase initiated.
E, [2014-04-23T10:08:30.207714 #4905] ERROR -- omniauth: (google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error, {"errors"=>[{"domain"=>"usageLimits", "reason"=>"accessNotConfigured", "message"=>"Access Not Configured. Please use Google Developers Console to activate the API for your project."}], "code"=>403, "message"=>"Access Not Configured. Please use Google Developers Console to activate the API for your project."}:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
When a user tries to login after the session id is expired, the system throws the OAuth error. Solution: Typically, clearing the browser or device cache fixes the problem.
How to resolve the issue. To resolve this error, please log out of your default Google Account then you will be able to use the Add-on with the account you installed it on. You can find out who your default account is by clicking your circular user avatar in the top right hand side of google.
Errors can occur during OAuth authorization. For example, a user denies access to the connected app or request parameters are incorrect. When errors occur, the authorizing server sends an error code to the callback URL with an error code.
Let's start with the biggest reason why OAuth isn't authentication: access tokens are not intended for the client application. When an authorization server issues an access token, the intended audience is the protected resource. After all, this is what the token is providing access to.
The answer is in your error log, Activate the Google API in developers settings in your account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With