我是否需要向OAuth2提供商注册域名(如google),还是可以使用我自己的IP地址/ Localhost发送请求?(Do I need to register a domain with an O

编程入门 行业动态 更新时间:2024-10-09 08:28:59
我是否需要向OAuth2提供商注册域名(如google),还是可以使用我自己的IP地址/ Localhost发送请求?(Do I need to register a domain with an OAuth2 provider, like google, or can use my own IP address/Localhost to send requests?)

我无法将我的代码推送到我的域,并且一直在我的本地Web服务器127.0.0.1上进行测试。 但我可以避免向OAuth2提供商注册域名,并从我的IP地址发送请求吗?

到目前为止,我已完成所有研究,但我没有看到任何不可能的迹象。 我也没有看到它的明确信息。

谢谢你的帮助!

I can't push my code to my domain and have been testing up until this point on my local web server, 127.0.0.1. But can I avoid registering a domain with the OAuth2 providers, and send requests from my IP address?

So far, I've done all research, but I've seen no indication that is is not possible. I've also seen no explicit information that it is.

Thanks for your help!

最满意答案

您可以注册任何域,包括localhost以进行本地测试。

Oauth服务器本身不会与该域联系。 作为身份验证过程的一部分,它只会将用户重定向回该域,当您使用localhost在本地测试时,该工作正常。

You can register any domain, including localhost for local testing.

The Oauth server will not contact that domain by itself. It will only redirect users back to that domain as part of the authentication process, which works just fine when you test it locally with localhost.

更多推荐

本文发布于:2023-08-02 13:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1375791.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   可以使用   提供商   地址   域名

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!