Oauth2client.clientsecrets.invalidclientsecretserror: Missing Property "redirect_uris" In A Client Type Of "web"
I am trying to send Gmail from a Python script to myself, and have the following code that used to be working: #!/usr/bin/env python import base64 from email.mime.audio import MIM
Solution 1:
Just go to your Credentials in your Google Dev Console and add what it's asking. http://localhost:8080/oauth2callback
or https://www.samplesite.com/oauth2callback
. Adding the 'oauth2callback
' is the redirect URI. Check the Create authorization credentials.
Solution 2:
I faced the same issue.
So after you add the redirect_uri
also don't forget to redownload the clien_secret.json
file.
Solution 3:
You need to perform 3 steps. (step 2 wasn't specified in other answers):
1 ) You add a uri to Authorized redirect URIs
.
2 ) The Authorized redirect URIs
uri is equal to the one you entered in Authorized JavaScript origins
just with a closing slash /
.
3 ) Download client_secret.json
again and add it to your working direcory.
Post a Comment for "Oauth2client.clientsecrets.invalidclientsecretserror: Missing Property "redirect_uris" In A Client Type Of "web""