什么是“ localhost” Azure重定向URL中的服务器

发布于 2025-02-11 06:41:23 字数 84 浏览 1 评论 0 原文

我有一个在Azure AD中注册的应用程序,并且在Redirecturl中使用Localhost,当我使用Localhost时,请使用Localhost。

I have an App registered in Azure AD, and in the redirectUrl I want to use localhost, when I use localhost which server it will look for?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疑心病 2025-02-18 06:41:23

根据此文档 它说,它说,它说,

localhost 保留用于文档和测试目的
如果您在浏览器中访问“ http:// localhost”,则该请求将保留在您自己的系统中。

  • Localhost是指我们正在运行应用程序的机器/设备
  • 而不是本地主机,我们可以使用IP地址访问 127.0.0.1
  • Thynge @Harshithithaveeramalla-Mt进行评论,如果我们将Redirecturi作为 HTTP :// localhost:portnumber 该请求将发送到同一设备,我们

按照此 msdoc localhost重定向uris有一些例外

http和https uri对于localhost可以接受

可接受的参考文献:

https://www.ionos.com/digitalguide/server/server/know-how/localhost/

https://learn.microsoft.com/en-us/azure/azure/active-directory/develop/develop/reply-rreply-url #localhost-exceptions

As per this Document it says,

localhost is a domain reserved for documentation and testing purposes.
If you access "http://localhost" in the browser, the request will remain in your own system.

  • Localhost refers to the machine/device where we are running our Application
  • Instead of localhost we can access with IP address 127.0.0.1
  • Thanks @HarshithaVeeramalla-MT for the comment, If we give RedirectURI as http://localhost:portnumber the request will be sent to the same device where we are accessing the app

As per this MSDoc there are some exceptions for localhost redirect URIs

http and https URI's are acceptable for localhost

Taken References from:

https://www.ionos.com/digitalguide/server/know-how/localhost/

https://learn.microsoft.com/en-us/azure/active-directory/develop/reply-url#localhost-exceptions

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文