截至昨天,我在Azure AD中添加了一个webapi和一个本机应用程序。昨天,我可以下载WEBAPI的清单文件来添加appPermissions(用于将权限委派给本机应用程序)。
清单文件中不再有任何appPermissions,它已经更改。我试着添加新的应用程序,甚至是一个新的广告。
现在只有appRoles。
有人知道为什么会这样吗?我如何解决这个问题,这样我仍然可以委派权限?
这可能是新用的东西吗?
oauth2Permissions": [
{
"adminConsentDescription": "Allow the application full access to the service on behalf of the signed-in user",
"adminConsentDisplayName": "Have full access to the service",
"id": "23906603-82b7-4471-afbd-b6bcf2fe7b1a",
"isEnabled": true,
"origin": "Application",
"type": "User",
"userConsentDescription": "Allow the application full access to the service on your behalf",
"userConsentDisplayName": "Have full access to the service",
"value": "user_impersonation"
}
],
@Simon Agren是对的,新的oauth2Permissions对我有效。只需下载一个旧的现有Maninifest,你就会看到它现在是如何使用oauth2PPermissions而不是appPermissions的。请记住为id属性创建一个新的GUID。当我今天早上看到这一点时,我也感到惊讶:)
干杯。