Azure Function - Azure Active Directory 应用程序 - 公开一个 API - IdentifierUris 的值 属性 必须使用经过验证的组织域

Azure Function - Azure Active Directory App - Expose an API - Values of IdentifierUris property must use a verified domain of the organization

我有一个启用了 Easy Auth 的 Azure Function App。我想通过 Azure Active Directory 中的相关注册应用公开一个 API。据了解,我能够为此使用 Azure Function App URI:

但是当我现在尝试这样做时,出现以下错误:

Error detail: Values of IdentifierUris property must use a verified domain of the organization or its subdomain

为什么?我该如何解决这个问题?

A​​zure Web API 身份验证在 15.10.2021 中发生了变化。用作标识符的 URI 需要是客户租户中已验证域列表的一部分,或者该值使用 AAD 提供的默认方案 (api://{appId})。

另见 https://www.c-sharpcorner.com/blogs/azure-new-restrictions-to-azurewebsitesnet-domain

要使其与默认 api:// 值和 Easy Auth 一起使用,您需要将此值添加到“允许的令牌受众”: