【发布时间】:2015-04-16 02:17:19
【问题描述】:
我的网络应用程序需要访问用户的 Google 数据。我决定使用 OAuth2。问题是谷歌不接受我的redirect_uri。是我的服务器在内网的本地IP地址。
过去我使用过 OpenID,它接受本地的 redirect_uri。如何用 OAuth2 解决这个问题?
到目前为止,我发现的唯一解决方案是使用redirect_uri=urn:ietf:wg:oauth:2.0:oob,但这需要用户复制并粘贴访问令牌。有没有更好的解决方案?
【问题讨论】:
标签: oauth oauth-2.0 google-oauth google-authentication google-openid