Azure / azure-sdk-for-rust

This repository is for active development of the *unofficial* Azure SDK for Rust. This repository is *not* supported by the Azure SDK team.
MIT License
676 stars 231 forks source link

fix the invalid scope by adding .default #1678

Closed devigned closed 2 weeks ago

devigned commented 2 weeks ago

fixes #1593

The CosmosDB scope is currently incorrectly formatted as "https://${YOUR_ACCOUNT_NAME}.documents.azure.com". This causes an error when using any auth flow other than primary key. This PR fixes the scope formatting changing the scope to "https://${YOUR_ACCOUNT_NAME}.documents.azure.com/.default".

I have validated that this via sample apps:

2024-06-17T15:29:56.535446Z DEBUG azure_identity::federated_credentials_flow: rsp_status == Ok
2024-06-17T15:29:56.535522Z DEBUG azure_core::policies::transport: the following request will be passed to the transport policy: