Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the invalid scope by adding .default #1678

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Conversation

devigned
Copy link
Member

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:

@heaths heaths merged commit 8c4caa2 into Azure:main Jun 17, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[help] - Using the Default Azure Credential to authenticate to CosmosDB
2 participants