Azure 身份验证 - 允许的令牌受众值需要是 URI 或 GUID 格式

Azure authentication - Allowed token audience value needs to be either URI or GUID format

在 Azure 中更新身份验证菜单后,我无法设置允许的访问者 api://app-id。在“身份验证(经典)”中,我能够设置这种类型的允许观众。有人知道如何在这个新的认证界面配置它

尝试查看此文档:https://www.eliostruyf.com/securing-azure-functions-existing-azure-ad-app/#allowed-token-audiences

api://<client id> 不是有效的 URI。

您可以将现有的应用程序 ID URI(api://<client id>) 更新为 https://<tenant name>.onmicrosoft.com/xxx 并确保提供唯一的 URL.

我已将此问题报告给 Microsoft,他们已修复,因此,现在可以使用 api://{app-id}

设置允许的受众