简体   繁体   English

Azure AD 授权端点请求管理员同意

[英]Azure AD Authorization endpoint asking for admin consent

Hi I'm trying to Embed a PowerBI report in Asp.Net application using the sample application downloaded from here .您好我正在尝试使用从此处下载的示例应用程序在 Asp.Net 应用程序中嵌入 PowerBI 报告。 I'm using UsersOwnData flow.我正在使用 UsersOwnData 流。

The same portal has created the Azure AD app registration with the permissions shown in below image.同一门户创建了 Azure AD 应用注册,其权限如下图所示。 Although none of the permissions need admin consent, I'm getting an error saying admin consent is needed as shown in below image when I hit the authorize endpoint.尽管所有权限都不需要管理员同意,但当我点击授权端点时,我收到一条错误消息,提示需要管理员同意,如下图所示。 Am I missing something?我错过了什么吗?

在此处输入图像描述

在此处输入图像描述

The app was registered as a multitenant application although it was not intended.该应用程序被注册为多租户应用程序,尽管它不是预期的。 Since Nov 9th 2020 Microsoft requires admin consent to be granted for multitenant apps and end users cannot grant the consent if the publisher is not verified by entering the MPN Id.自 2020 年 11 月 9 日起,Microsoft 要求为多租户应用程序授予管理员同意,如果未通过输入 MPN Id 验证发布者,最终用户无法授予同意。

This was the issue in my case.这就是我的问题。 It was solved by granting the admin consent.它通过授予管理员同意来解决。 The small note displayed in the Authentication blade helped me to identify the issue.身份验证刀片中显示的小注释帮助我确定了问题。 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM