【发布时间】:2016-04-06 07:12:25
【问题描述】:
我正在尝试创建一个使用 azure ad 进行身份验证的应用程序。我已经使用 Visual Studio 创建了一个 Web api 和一个带有 azure portal 的本机客户端应用程序。然后,当我尝试在“其他应用程序的权限”下添加 webapi 时,我找不到 webapi ,但它就在那里。我已经更改了表现文件并在其中添加了以下条目
我指的是这个http://www.codemag.com/article/1503041
"oauth2Permissions": [
{
"adminConsentDescription": "Allow the application full access to your API on behalf of the signed-in user",
"adminConsentDisplayName": "Have full access",
"id": "A1AED6C3-1897-4919-B06E-CDB5B6AF1BD5",
"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"
}
]
由于如下所示的错误,我无法上传表现文件。
ParameterValidationException=提供的参数无效; BadRequestException=属性值不能被删除,除非它是 先禁用。;
【问题讨论】:
标签: c# azure single-sign-on azure-active-directory