-
Notifications
You must be signed in to change notification settings - Fork 340
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
[Bug] Cache misses in client_credentials when authority is specified at request level, cloud is not global and region is used #2686
Comments
@bgavrilMS : when you write Add |
@bgavrilMS i need more context as well, but we can release after you release. |
@jmprieur - I think this should just work, i.e. the authority at the request level overrides the authority at the app level. The only conflicts between authority at app level and authority at request level are:
|
I'm still confused. |
We do need it for flows where users / accounts are involved, because otherwise you cannot do Do you want to make the programming model more consistent between AcquireTokenForClient and other AcquireToken* calls and require that the 2 authorities have the same host? Throw an exception if they do not? |
I hit this issue in national clouds where caching was not working because app.GetAccounts() call returned no accounts, thereby resulting in throttling from ESTS. |
Workaround: Add
.WithAuthority("https://login.windows-ppe.net/common")
or any authority of the same cloud to the application builder.The text was updated successfully, but these errors were encountered: