-
Notifications
You must be signed in to change notification settings - Fork 862
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
Latency from instance discovery calls while retrieving the token using certificate credential call #21091
Comments
Instance discovery is used for several purposes:
Note that instance discovery should have been implemented in ADAL as well, it's not an MSAL specific issue. There is a flag to disable instance discovery, see AzureAD/microsoft-authentication-library-for-go@dac2c13 To answer your questions:
Instance discovery ESTS-R should work in non-public clouds, irrespective of instance discovery state.
|
Hi @bgavrilMS , |
I agree that until we make the optimization in MSAL GO, disabling will have minimal impact for your client. |
Thank you @bgavrilMS |
I don't know about the first sentence, I'll let @chlowell chime in. |
What cache? If you mean your cache of ClientCertificateCredential instances, you would need to replace any instance whose cert you roll. New instances would start with an empty authentication data cache.
No |
Hi @daxakp. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Hi @daxakp, since you haven’t asked that we |
In our PoC testing with AzIdentity for go (which in turns uses MSAL for go) we found that client secret/certificate credential call for retrieving the token almost double the time when compared with ADAL call for the same. The added latency is from the additional instance discovery calls.
Considering the recommendation from the SDK team to keep instance discovery enabled in public clouds,
Do note that our service run in air gapped cloud. Instance discovery will not work.
The text was updated successfully, but these errors were encountered: