-
Notifications
You must be signed in to change notification settings - Fork 347
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 Date-Time Parsing in GetDurationFromNowInSeconds for Multiple Formats #4964
Conversation
tests/Microsoft.Identity.Test.Unit/ManagedIdentityTests/ManagedIdentityTests.cs
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/ManagedIdentityTests/ManagedIdentityTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unit test doesn't seem ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not fixed.
src/client/Microsoft.Identity.Client/OAuth2/MsalTokenResponse.cs
Outdated
Show resolved
Hide resolved
@gladjohn - was this bug fixed in all other MSALs? |
no, we have these bugs still in open state AzureAD/microsoft-authentication-library-for-python#760 |
Fixes #4963
Changes proposed in this request
This PR add a new GetDurationFromNowInSeconds specific to MI in MSAL to handle multiple date-time formats while calculating the duration from now. Specifically, the fix:
Testing
Performance impact
None
Documentation