我正在尝试通过休息访问 azure 资源管理器,该过程的一部分是提供授权 header 。我已经能够使用 adal 库成功检索 token 。
我可以使用 https://management.core.windows.net/或https://management.azure.com/作为获取 token 的资源 URL。两者有什么区别?
我还想了解login.microsoftonline.com/和https://login.windows.net/之间的区别作为权威 URL
最佳答案
I can use either https://management.core.windows.net/ or https://management.azure.com/ as the resource URL to get the token. What is the difference between two ?
management.core.windows.net
是 Azure 服务管理 REST API
的端点,而 management.azure.com
是Azure 资源管理器 REST API
。
I also would like to understand the difference between login.microsoftonline.com/ and https://login.windows.net/ as the authority URL
两者本质上是相同的,但建议您使用 login.microsoftonline.com
作为 login.windows.net
重定向到该网站。因此,如果您使用前者,则可以节省一次重定向。但建议您开始使用前者。请阅读此博文了解更多详细信息:https://blogs.technet.microsoft.com/enterprisemobility/2015/03/06/simplifying-our-azure-ad-authentication-flows/ .
关于azure - 了解资源和权限 url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40010104/