api - Azure Function - Azure Active Directory App - Expose an API - Values of IdentifierUris property must use a verified domain of the organization
问题描述
I have an Azure Function App with Easy Auth enabled. I want to expose an API via the related registered app in the Azure Active Directory. Up to know I was able to use the Azure Function App URI for that:
But when I try to that now, I get the following error:
Error detail: Values of IdentifierUris property must use a verified domain of the organization or its subdomain
Why? And how can I resolve the issue?
解决方案
There has been a change with 15.10.2021 in the Azure Web API authentication. The URI used as identifier needs to be part of the verified domain list in the customer tenant or the value uses the default scheme (api://{appId}) provided by AAD.
See also https://www.c-sharpcorner.com/blogs/azure-new-restrictions-to-azurewebsitesnet-domain
To make it work with the default api:// value and Easy Auth you need to add this values to "Allowed Token Audiences":
推荐阅读
- java - 等于并与 BigDecimal 比较
- amazon-web-services - 计划 RDS 仅在计划的 Fargate 任务运行时运行
- c++ - 尝试使用 enable_if 启用 SFINAE 时出现“无法重载”错误
- android - ADB 命令打开所有应用程序菜单
- post - 经典 ASP 访问字节数组并将其转换为字符串
- c# - 将动态数据表作为 Web 服务上的列表返回
- php - 如何使用多个函数来操作文本
- jquery - 错误:在 require.resolve('jquery') webpack 上找不到模块 'jquery'
- php - 从 php 中的 stdCass 对象访问数组数据
- c# - 通过 Dialogflow 和 C# Azure Function 存储 Google Assistant 的用户设置