我正在尝试使用 Google oAuth2 从一次性代码访问令牌。但我收到一条错误消息redirect_uri_mismatch
在回应中。不过我已经添加了redirect_uri
在控制台中。
我有我的Authorized redirect uri
as:
http://localhost:3020/api/users/google_oauth_store_token
我的请求:
Request URL = https://www.googleapis.com/oauth2/v3/token?code=xXXXxx&client_id=xxxxxx&client_secret=xxx&redirect_uri=http://localhost:3020/api/users/google_oauth_store_token&grant_type=authorization_code
我的回复:
response = {
"error": "redirect_uri_mismatch",
"error_description": "Bad Request"
}
那是我的错误。我不得不使用redirect_uri
我曾在一次性重定向 uri 中使用过它。 Google 使用redirect_uri 之一来保留客户端源。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)