azure - AADSTS900144 : The request body must contain the following parameter: 'scope' when using legacy Developer Portal

标签 azure azure-active-directory azure-api-management

我尝试在基于 this article 的 APIM 实例中实现 AAD和 this article 。不幸的是,当它进入开发者控制台时,在我选择授权代码作为授权方法后,立即出现一个弹出窗口,并向我显示以下错误:

AADSTS900144: The request body must contain the following parameter: 'scope'.

https://login.microsoftonline.com/{目录(租户)ID 上失败 }/oauth2/v2.0/authorize?response_type=code&client_id={客户端id}&redirect_uri=https://{my-apim-instance}/docs/services/{授权方法}/console/oauth2/authorizationcode/callback&state={州}

由于所有这些都是 Azure 门户(此时为旧版开发人员门户)的一部分,因此我不填写范围参数。你如何设置该属性?还是其他地方有问题?

最佳答案

由于您使用的是 V2 端点,因此您需要使用在默认范围字段中为后端应用程序创建的范围。

enter image description here

您可以从 webapi application 找到范围.

enter image description here

关于azure - AADSTS900144 : The request body must contain the following parameter: 'scope' when using legacy Developer Portal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59826328/

相关文章:

Azure Active Directory Web Api 无法正常工作

azure-api-management - Azure API 网关策略

azure - 通过Powershell将Function App导入API管理

azure - 如何知道 Azure 服务器是否使用 TLS 1.2

azure - 启用了 Active Directory 身份验证的应用程序服务无法运行

c# - 在 C# 中异步创建新 DocumentDB 文档的问题

angular - 使用 ADAL Angular 6 Wrapper 调用 API

Azure APIM 转发自定义 header 并更改后端 URI

amazon-web-services - k8s 高可用性配置产品边缘案例

Azure API 管理 - 当产品不需要订阅时如何执行产品策略?