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
[Feature Request] Expose CorrelationId from MsalException #4187
Comments
Hi @KurzyukovAndrey, there shouldnt be any scenarios where we throw a |
Hi @trwalke, thank you for your response! |
Any updates about the progress/state? |
Fixed in MSAL.Net 4.60.0 release |
Problem
We need to meter
CorrelationId
in case of acquiring a token. However, we cannot retrieveCorrelationId
from MsalException.Use case
The simplified code of usage is shown below:
Our consumers call WithCorrelationId using configuration parameter. Then, we acquire a token. In case of success, we can retrieve
CorrelationId
from AuthenticationResult.CorrelationId. But we cannot retrieve it from MsalException.Proposal
Expose
CorrelationId
for all exceptions.Additional context
Based on Exceptions in MSAL.NET, there are 4 exceptions. MsalServiceException and MsalUiRequiredException expose CorrelationId, but the rest do not.
The text was updated successfully, but these errors were encountered: