如何将我的 Web API 端点公开给 Azure AD 中的其他资源应用程序?

How can I expose my Web API endpoint to other resource applications in Azure AD?

我正在按照指南进行操作 active-directory-integrating-applications 我下载了应用程序清单,它已经具有等效的 oauth2Persission:

"oauth2Permissions": [
{
  "adminConsentDescription": "Allow the application to access ShippingScheduleAPI on behalf of the signed-in user.",
  "adminConsentDisplayName": "Access ShippingScheduleAPI",
  "id": "ba650239-2de4-41c1-979b-886a9427389a",
  "isEnabled": true,
  "type": "User",
  "userConsentDescription": "Allow the application to access ShippingScheduleAPI on your behalf.",
  "userConsentDisplayName": "Access ShippingScheduleAPI",
  "value": "user_impersonation"
}

],

然而,当我转到我的客户端应用程序并尝试添加应用程序时,它没有显示在 "All Apps" 下。

原来显示 "All Apps" 的下拉菜单不会更改过滤器,直到您 select 复选框

我刚刚遇到了同样的问题,但使用的是新版本的 Azure 门户。

我所有的自定义 api 默认情况下不会显示。为了能够 select 其中之一(授予权限),我需要在筛选框中键入应用程序的名称,然后按回车键。 api 会在那之后出现。