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:
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: