繁体   English   中英

Azure AD 身份验证:获取访问令牌时出现权限错误

[英]Azure AD authentication : Permission error while fetching access token

使用 Azure AD 进行身份验证时,出现此错误。

AADSTS90008: The user or administrator has not consented to use the application with ID 'Application (client) ID'(appname). This happened because application is misconfigured: it must require access to Windows Azure Active Directory by specifying at least 'Sign in and read user profile' permission AADSTS90008: The user or administrator has not consented to use the application with ID 'Application (client) ID'(appname). This happened because application is misconfigured: it must require access to Windows Azure Active Directory by specifying at least 'Sign in and read user profile' permission

我在AD注册的应用中配置的API权限是

在此处输入图片说明

但是在出现此错误后,如果在用户同意选项卡下检查我的应用程序权限页面,我可以看到三个权限。

在此处输入图片说明

第三个我没有添加到我的应用程序中 选中时,仅对第三个启用用户权限,而不是所需的两个。 用户在登录时已表示同意。

同意屏幕如下所示:

在此处输入图片说明

我怎样才能解决这个问题 ?

您只需要使用“为{您的租户}授予管理员同意”功能来为您的租户进行管理员同意。 您租户中的用户将拥有所需的权限。

此功能目前似乎存在显示问题。 最简洁的方法应该是创建一个新的 Azure AD 应用程序并使用此按钮完成管理员同意。

在此处输入图片说明

暂无
暂无

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

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