管理员同意不适用于App Model V2 [英] Admin Consent not working with App Model V2

查看:81
本文介绍了管理员同意不适用于App Model V2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Azure AD身份验证并访问graph.microsoft.com的Web应用程序.当前,我们在Azure管理门户中进行了必需的应用程序注册,但是我们希望使用apps.dev.microsoft.com中的应用程序注册迁移到新的App Model V2.这使我们可以使用应用程序中定义的范围,而不是Azure门户中定义的资源.

I have a web application that used Azure AD authentication and accesses graph.microsoft.com. We currently do the required application registration in Azure Management Portal, but we want to move to the new App Model V2 with application registration in apps.dev.microsoft.com. This allows us to use scopes that are defined in the application instead of resources defined in the Azure Portal.

但是,退出应用程序模型后,我们可以定义管理员同意,以便管理员可以同意所有用户.这不适用于App Model V2,我们会收到错误消息:

However, with exiting App Model, we can define admin-consent so that the admin can give consent to all users. This does not work with App Model V2 and we get the error message:

AADSTS90100:无效的请求.提示请求参数值'admin_consent'无效.

AADSTS90100: Invalid request. The prompt request parameter value 'admin_consent' is invalid.

我们如何在应用模型v2中使用管理员同意书?

How can we use admin consent with app model v2?

推荐答案

尚无法在App Model V2中使用admin_consent.您需要使用App Model V1(在Azure门户中注册您的应用)

It is not yet possible to use admin_consent with App Model V2. You need to use the App Model V1 (registration your app in Azure Portal)

桑德

这篇关于管理员同意不适用于App Model V2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆