-
Notifications
You must be signed in to change notification settings - Fork 409
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
Added sample tests for the new validation path #2801
Conversation
src/Microsoft.IdentityModel.JsonWebTokens/JsonWebTokenHandler.ValidateSignature.cs
Outdated
Show resolved
Hide resolved
@@ -4,6 +4,7 @@ | |||
using System; | |||
using System.IdentityModel.Tokens.Jwt; | |||
using System.Security.Claims; | |||
using System.Threading; |
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.
Why do we need a new assembly?
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.
CancellationToken requires it.
/// Tests how the class under test handles a token which is not yet valid | ||
/// </summary> | ||
[Fact] | ||
public void NetYetValidToken_NewPath() |
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.
This is too fractured.
We need sets of tests using TheoryData for Lifetime, Audience, etc.
Why not part of JsonWebTokenHandler.ValidateLifetimeTests
These tests are being removed. |
Added sample tests for the new validation path
Description
Added sample tests for new validation path and aligned errors returned.
Part of #2711