Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth2.0 Invalid parameter value for redirect_uri: Missing scheme

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?

like image 760
userdiana Avatar asked Dec 01 '25 03:12

userdiana


1 Answers

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
like image 115
John Hanley Avatar answered Dec 02 '25 22:12

John Hanley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!