OAuth2.0 redirect_uri的参数值无效:方案丢失 [英] OAuth2.0 Invalid parameter value for redirect_uri: Missing scheme

查看:158
本文介绍了OAuth2.0 redirect_uri的参数值无效:方案丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Oauth2.0流用于在GCP中部署的Appengine Webapp.

I'm using Oauth2.0 flow for my appengine webapp deployed in GCP.

我正在使用IAP.我有一个使用Cloud KMS加密的有效cliend_secret文件.但是我遇到了一个以前没有的错误:

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?

推荐答案

此错误表示您未为授权重定向URI指定完整的URI.

This error means that you did not specify a complete URI for the Authorized Redirect URIs.

转到Google Cloud Console-> APIs&服务->凭证.向下滚动到授权重定向URI".

Go to the Google Cloud Console -> APIs & Services -> Credentials. Scroll down to "Authorized redirect URIs".

将重定向URI更改为:

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

这篇关于OAuth2.0 redirect_uri的参数值无效:方案丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆