php – 401. That’s an error. Error: invalid_client The OAuth client was not found

php – 401. That’s an error. Error: invalid_client The OAuth client was not found

Your client_id is not correct, re-check pls

enter

In the following pic, I made with restricted mode in API keys section. This helped me to to remove the display. Hence finally, shown as:

No API keys to display

Try to validate the client_id with those that you created for your project as:

https://console.developers.google.com/google/maps-apis/credentials?folder=&organizationId=&project=saml-281612

The project name, like in my case, it is saml, should match with the project apps as saml to mitigate mismatch_uri error.

This helped me to remove all those errors as:

1. Error 400 : mismatch_uri
2. Error 401 : invalid client_id  

php – 401. That’s an error. Error: invalid_client The OAuth client was not found

In my case, i mistakenly add a , in the values in my .env files so better check that file

# check the comma at the end
AUTH_CLIENT_SECRET=randomauthsecret,
AUTH_CLIENT_ID=randomclientid, 

That causes the wrong client id value. So just remove the ,. Another thing, also dont enclose them in quotes.

AUTH_CLIENT_SECRET=randomauthsecret
AUTH_CLIENT_ID=randomclientid

Leave a Reply

Your email address will not be published.