I'm using Oauth2.0 flow for my appengine webapp deployed in GCP.
I'm using IAP. I have a valid cliend_secret file crypted with Cloud KMS. But I'v got this error that I didn't have before :
oauthlib.oauth2.rfc6749.errors.InvalidClientIdError:(invalid_request)
Invalid parameter value for redirect_uri: Missing scheme:
/api/oauth2callback
Do you have any idea the source of this problem?
This error means that you did not specify a complete URI for the Authorized Redirect URIs.
Go to the Google Cloud Console -> APIs & Services -> Credentials. Scroll down to "Authorized redirect URIs".
Change the redirect URI to be:
https://your-domain-name/api/oauth2callback
If you are using a non standard port number, use this format:
https://your-domain-name/api/oauth2callback:8443
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