可以将公共IP地址用作Google OAuth重定向URI吗? [英] Can a public IP address be used as Google OAuth redirect URI?

查看:50
本文介绍了可以将公共IP地址用作Google OAuth重定向URI吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个需要用户的Google谷歌纵横信息的网络服务,因此我正在使用Google OAuth来获取用户授权信息.

I'm trying to set a web service that needs the user's Google Latitude info, so I'm using Google OAuth to get the user authorization stuff.

但是,当尝试在Google API控制台中为Web应用程序客户端ID设置重定向URI时,如果尝试将其设置为"http://PUBLIC_IP/",则会收到一条消息错误.

However, when trying to set the redirection URI in the Google APIs Console for a web application client ID I get a message error if I try to set it to 'http://PUBLIC_IP/'.

我需要针对非本地用户进行测试(因此无法使用localhost),因此我想知道是否必须具有网络域才能使用Google的OAuth.如果没有,我该如何解决这个问题?

I need to test it with non local users (thus localhost can't be used), so I would like to know if having a web domain is mandatory in order to use Google's OAuth. If not, how can I solve this issue?

推荐答案

当前不支持此功能.我提出了功能要求,并会及时更新.

This is not currently supported. I filed a feature request and will update on progress.

这篇关于可以将公共IP地址用作Google OAuth重定向URI吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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