azure - 了解资源和权限 url

标签 azure azure-active-directory adal

我正在尝试通过休息访问 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.netAzure 服务管理 REST API 的端点,而 management.azure.comAzure 资源管理器 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/

相关文章:

azure - 使用 Azure CLI (2.0.23) 创建函数应用程序无法链接到部署源 url

c# - Identity Server 4 从 UI 进行身份验证后添加声明

asp.net - 使用 Azure AD 进行 headless 身份验证(用户/密码组合)

amazon-web-services - 需要从 AWS Devops 服务连接 Azure 基础设施。这真的可能吗?

linux - Windows Azure Linux VM 缓慢重启

c - Azure 球体错误 'id returned 1 exit status'

c# - 在 MVC Web App 中通过 ViewModel 调用 Graph API

node.js - 使用 Azure AD 登录我的 Node.js 应用程序后出现隐秘的 "client does not exist"错误

powershell - 我从哪里获得 Powershell Cmdlet Remove-UserPhoto

javascript - 错误 : The reply URL specified in the request does not match the reply URLs configured for the application