Skip to content

Conversation

aavasthy
Copy link
Contributor

As part of the current PR:

If end-user provided a custom scope by overriding the environment variable() then we use that value for AAD authentication. In case of failures with the custom scope there is no retry/fallback.
If no custom scope is provided then we use account scope for AAD authentication. In case of failure with exception AADSTS500011, there is fallback implemented as part of this PR and then it retries with this scope "https://cosmos.azure.com/.default".
This is a temporary change we are implementing till this "https://cosmos.azure.com/.default" is accepted as the scope across all environments and clouds.

@aavasthy aavasthy self-assigned this Oct 17, 2025
@github-actions github-actions bot added the Cosmos The azure_cosmos crate label Oct 17, 2025
@aavasthy aavasthy closed this Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cosmos The azure_cosmos crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant