【问题标题】:Unable to upload application manifestation file无法上传应用程序表现文件
【发布时间】: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


    【解决方案1】:

    问题出在上面我添加了一个不允许的新 GUID,所以我将它改回来,在 web api 的配置部分添加密钥后它起作用了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-01
      • 1970-01-01
      • 2021-04-02
      • 2012-02-15
      • 1970-01-01
      • 2015-07-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多