使用谷歌认证Oauth 2.0与注册的重定向URI不匹配 [英] Authenticate with google Oauth 2.0 did not match a registered redirect URI

查看:425
本文介绍了使用谷歌认证Oauth 2.0与注册的重定向URI不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 Google OAuth 2.0进行身份验证,我在 Google的云控制台中注册了我的网址。

I'm trying to authenticate with using Google OAuth 2.0, I registered my url in the Google's Cloud Console.

在google的 OAuth 2.0 的规范中,它说: redirect_uri :确定发送响应的位置。此参数的值必须与 Google云端控制台中注册的值之一完全匹配(包括http或https方案,案例和尾随'/')。

In the specs of google's OAuth 2.0 it says: redirect_uri: Determines where the response is sent. The value of this parameter must exactly match one of the values registered in the Google Cloud Console (including the http or https scheme, case, and trailing '/').

但在云端控制台中,我不能放入http,它只允许我提供域名。
我猜的唯一信息是 Notification Endpoint ,缺少 redirect_uri 。我也搜索了应用程序控制台。有没有人有暗示我应该在哪里指定 redirect_uri

But in the cloud console I can't put the "http", it allows me only the domain name. The only information I guessed was the Notification Endpoint, the redirect_uri is missing. I searched the app console as well. Does anyone has a hint on where I should specify the redirect_uri?

推荐答案

转到:
https://cloud.google.com/console
你会看到下面的屏幕。您可以输入完整格式的URI,如示例中所示

Go to: https://cloud.google.com/console And you'll see the following screen. You can enter fully formed URIs as you can see in the example

这篇关于使用谷歌认证Oauth 2.0与注册的重定向URI不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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