如何同意一个应用程序,并在AAD依赖于它的服务 [英] How to consent an app and its dependent services in AAD
问题描述
我创建了一个在同一个目录的两个服务的依赖性多租户MVC应用程序。清单的RequiredResourceAccess部分看起来是这样的:
I created a multi-tenant MVC application that has a dependency on two services in the same directory. The RequiredResourceAccess section of the manifest looks like this:
"requiredResourceAccess": [
{
"resourceAppId": "fc7ecdae-ec69-40a8-a88f-a859591fab07",
"resourceAccess": [
{
"id": "058901ac-c903-4772-8ccb-d746b94ac86b",
"type": "Scope"
}
]
},
{
"resourceAppId": "66d17ca1-0084-4865-baad-bd45e385ab46",
"resourceAccess": [
{
"id": "b92337f6-3727-4563-a1fd-2a7a065def89",
"type": "Scope"
}
]
},
{
"resourceAppId": "00000002-0000-0000-c000-000000000000",
"resourceAccess": [
{
"id": "311a71cc-e848-46a1-bdf8-97ff7156d8e6",
"type": "Scope"
}
]
}
],
我从样品这里复制的入职控制器。当我尝试从不同的租户管理员用户注册,而不是同意画面,我得到的错误:
I copied the onboarding controller from the sample here. When I try to sign up with an admin user from a different tenant, instead of the consent screen, I get the error:
AADSTS65005: Resource 'fc7ecdae-ec69-40a8-a88f-a859591fab07' does not exist or one of its queried reference-property objects are not present.
根据该回答<一href=\"http://stackoverflow.com/questions/29753162/how-to-get-a-token-for-downstream-service-in-aad/29755575#29755575\">here,我应该能有一个屏幕同意为我的MVC应用程序及其相关的服务。我缺少什么?
According to the answer here, I should be able to have a single consent screen for my MVC app and its dependent services. What am I missing?
推荐答案
你试过下面这个页面上的说明设置为本地API资源的访问权限?
Have you tried following the instructions on this page to set up your access to local API resources?
http://msdn.microsoft.com/en-us/库/天蓝色/ dn132599.aspx
该错误意味着对我说,你的应用程序或者其暴露的权利可能没有被正确配置。
The error implies to me that your application or its exposed entitlements may not have been properly configured.
如果你向我提供你的租户ID,我可以仔细看看作为这里的问题。
If you provide me with your tenant ID I can take a closer look as to the issues here.
请让我知道,如果上述资源帮助!
谢谢
Please, let me know if the above resource helps! Thanks
这篇关于如何同意一个应用程序,并在AAD依赖于它的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!