I had a probleme recently with Google Oauth , i did't change any think but i had this probleme : Error fetching OAuth credentials: "invalid_client".
Here is my configuration on file .env:
'BRANDS_REPO_OAUTH_GOOGLE_CLIENT_ID' => '378646254450k9rb76sap5eqvsk2id8qg50gv74ocat8.apps.googleusercontent.com',
'BRANDS_REPO_OAUTH_GOOGLE_CLIENT_SECRET' => 'xxxxxxx',
Any updates or any ideas how i can solve this problem?
Error:
Error 401: invalid_client
The OAuth client was not found.
=> used client 378646254450k9rb76sap5eqvsk2id8qg50gv74ocat8.apps.googleusercontent.com doesn't exists anymore (probably someone has deleted it). Contact your admin and ask to create new one or create own Google OAuth client.
Related
I am trying to update a primary email domain for a google apps account. And I can't seem to figure out the scope needed.
I keep receiving a 403 error when I make a request
Here is what I have tried.
After generating an access token with oAuth2, through postman. The settings below:
Auth URL: https://accounts.google.com/o/oauth2/auth
Access Token URL: https://accounts.google.com/o/oauth2/token
ClientID: id
Client Secret: secret
Scope: https://www.googleapis.com/auth/admin.directory.customer
Making a GET request to https://www.googleapis.com/admin/directory/v1/customers/my_customer with the token and I get a 403 insufficient permissions error back.
Is there something I am missing? I know steps to update the URL require making a get to get the users ID before making the PUT request. But I am not able to GET anything.
Is there something I am missing? Here is the URL to the DOCS if needed.
Thanks.
See domain rename known issues. The rename won't work if you are a reseller, purchased your domain via Google Domains or have Chrome licenses.
I`m trying to run playground2 example and authorize with WSO2 Identity server 5.0.0 using OAuth2. And when I choose the authorization_code grant type application failed to obtain token since identity server returns 401 error.
But with Identity Server 4.6.0 it works fine.
Authentication parameters is:
grant_type: authorization_code
client_id: XXXXXXX
scope:
callback url: http://localhost:8081/oauth2client
authorize endpoint: https://localhost:9443/oauth2/authorize
Is it a bug of WSO2IS 5.0.0?
Pls obtain the latest playground app from this location.
You call back url seems to be wrong. Please follow the steps given in this document which is explained for Identity Server 5.0.
!
Getthing Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant" }' when trying to access Google Analytics API
This is a service account
I have specified my client ID, gservice account email, and the path to the certificate file
I have added the gservice account email as an admin to my Google Analytics profile
I have installed NTP on my ubuntu server to ensure that the time is correct
I am using a package ( https://github.com/thujohn/analytics-l4 ) but I don't think this is related to the issue at all.
Any ideas?
There could be several causes for invalid_grant, for example, the assertion is a malformed JWT, or some required fields are missing, or Google fails to validate the signature of the assertion, etc. Seems that you were using the Google OAuth2 client library for PHP so the first two issues should be eliminated. Is it possible you used an incorrect private key file?
Resolved the same issue by changing the scope
I'm having issues with Google OAuth2 in iOS; I'm getting an "invalid_grant" error. I am doing the following steps:
I created the project and Credential ( iOS app ) Google Console;
I did request the CODE;
I did request the access token (working well);
10 minutes before the expiry of the access token , I do request a refresh token.
The problem is intermittent . Sometimes the request for refresh ( refresh_token ) returns " invalid_grant " and so the access_token becomes invalid and my application just stops .
If forcing the user login to generate a new access_token and refresh_token not work. I have to revoke the permissions of the account and try again.
What I need is access to IMAP and SMTP Gmail . If I check the access_token ( https://www.googleapis.com/oauth2/v1/tokeninfo ) is active and valid , but the IMAP and SMTP denies access.
I'm actually thinking of going back to the login username and password . The service is very unstable for not having the same reaction . I'm sure I'm not bursting any limitations and been the message " invalid_grant " would at least not appropriate.
Please , any employee of Google, HELP ME !
Thank you.
I was facing this problem as well. I wasn't doing anything with IMAP, but I was getting an invalid_grant pretty frequently when trying to handle auth. Eventually I got things working using the following settings:
authentication.refreshToken = savedRefreshToken;
authentication.accessToken = savedAccessToken;
authentication.additionalTokenRequestParameters = #{#"access_type":#"offline"};
I think it was mainly that last one that did the trick. I found it somewhere in the Google documentation, but I didn't save where. Their docs are pretty messy.
I am using scribe 1.3.1.jar.
I have successfully authenticated user with twitter using this jar.
But I am facing problem while authenticating user with linkedin using the same jar.
I am getting this error while obtaining access Token. I have successfully get request token & verifier.But the problem creeps when i tried getting access Token & got following exception:
Response body is incorrect. Can't extract token and secret from this:
oauth_problem=signature_invalid&oauth_problem_advice=com.linkedin.security.auth.pub.LoginDeniedInvalidAuthTokenException%20while%20obtaining%20request%20token%20for%20%3APOST%26https%253A%252F%252Fapi.linkedin.com%252Fuas%252Foauth%252FaccessToken%26oauth_consumer_key%253Dxuk04eooznqu%2526oauth_nonce%253D2417349075%2526oauth_signature_method%253DHMAC-SHA1%2526oauth_timestamp%253D1365577634%2526oauth_token%253D7277829e-e121-4b76-b0f4-8f5e9e6c7be8%2526oauth_verifier%253D66312%2526oauth_version%253D1.0%0AOAU%3Axuk04eooznqu%7C7277829e-e121-4b76-b0f4-8f5e9e6c7be8%7C%2A01%7C%2A01%3A1365577634%3AlCqOvqH1tkJAtpGa58tnEhqwdRQ%3D
I feel really stuck in this.
Please Help!.
Take a look at this blog post: http://www.objectpartners.com/2012/04/03/linkedin-api-in-a-grails-application/
It shows how to use the OAuth plugin which uses the Scribe library. Hope that helps!