简体   繁体   English

对 Azure Data Lake Storage Gen 2 的 REST API 调用不起作用。 给我错误“受众验证失败。受众不匹配”

[英]REST API call to Azure Data lake Storage Gen 2 not working. Giving me error "Audience validation failed. Audience did not match"

I'm using the REST API to list all the queues in my azure data lake storage account.我正在使用 REST API 列出我的 azure 数据湖存储帐户中的所有队列。

But I am getting this error:但我收到此错误:

"Audience validation failed. Audience did not match" “受众验证失败。受众不匹配”

Per my understanding, you are using Azure AD for the authentication .根据我的理解,您使用Azure AD 进行身份验证 Please find the steps as below.请找到以下步骤。

1. Register an application 1. 注册一个应用程序

2. Assign a build-in RBAC role to this application. 2. 为该应用程序分配一个内置的 RBAC 角色 It depends on you which role to be assigned to the application.这取决于您要为应用程序分配哪个角色。

3.get access token. 3.获取访问令牌。 Please note to use https://storage.azure.com/ as resource请注意使用https://storage.azure.com/作为资源

在此处输入图片说明

  1. call the rest api.调用其余的api。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure 存储身份验证失败 - 观众验证失败。 观众不匹配。 [天蓝色][OAuth] - Azure Storage Authentication failing - Audience validation failed. Audience did not match. [AZURE][OAuth] 尝试使用Ruby在我的数据湖存储gen2上进行Azure REST API调用时,“服务器未能验证请求” - “Server failed to authenticate the request” when attempting to make an Azure REST API call on my data lake storage gen2 using Ruby 使用服务主体对 Azure Data Lake Storage Gen 2 进行 REST API 调用的 OAuth 令牌 - OAuth token for REST API call to Azure Data Lake Storage Gen 2 using service principal 尝试通过 REST API 访问 Azure 数据湖存储 Gen 2 中的文件系统时出现 403 错误 - 403 error when trying to access file system in Azure data lake storage Gen 2 via REST API Azure 使用 AAD 身份验证的存储列表 Blob - 受众验证失败 - Azure Storage List Blobs using AAD Authentication - Audience validation failed 寻找 REST API 以列出 Azure Data Lake Gen2 存储的所有容器 - Looking for REST API to list all Containers of Azure Data Lake Gen2 Storage 使用Azure Functions调用REST API并将结果保存在Azure Data Lake gen2中 - Using Azure Functions to call REST API and save results in Azure Data Lake gen2 IDX10214:受众验证失败。 观众:'[PII 被隐藏]' - IDX10214: Audience validation failed. Audiences: '[PII is hidden]' 可以在 Azure Data Lake Gen 2 Rest API 中使用通配符吗? - Can be used wildcards in Azure Data Lake Gen 2 Rest API? 从应用注册中列出 azure 存储帐户容器时,受众验证失败 - Audience validation failed while listing azure storage account containers from app registrations
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM