-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Update System.IdentityModel.Tokens.Jwt and xunit #431
Conversation
@abergs Ready for review. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #431 +/- ##
=======================================
Coverage 77.50% 77.50%
=======================================
Files 98 98
Lines 2716 2716
Branches 445 445
=======================================
Hits 2105 2105
Misses 492 492
Partials 119 119
☔ View full report in Codecov by Sentry. |
If we get this merged in, I'd like to take a look at migrating to Microsoft.IdentityModel.JsonWebTokens as well. This would require that AttestationVerifier.Verify by changed to AttestationVerifier.VerifyAsync. |
This looks good to me! |
@abergs Let me know if there's anything left on this one. |
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.
Looks good to me.
This PR updates the following dependencies:
And reacts to the following breaking changes:
System.IdentityModel.Tokens.Jwt v7.0.2 no longer serializes byte arrays as base64 strings. When generating tokens for testing, we need to base64 encode manually. In the main library, we only validate tokens... so we are OK.
xunit 2.5.1 has an updated analyzer that require async method calls to occur in an async context. The tests have been updated accordingly.