-
Notifications
You must be signed in to change notification settings - Fork 600
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
JWT builder time issue #14298
Comments
[10/02/2020 14:26:06:178 CDT] 001 CommonFatLoggingUtils JwkEndpointValidationUrlTests_ I Response (Full): ******************* Start of jwtbuilderclient/JwtBuilderSetApisClient output ******************* |
I'm actually going to close this issue because it was for a bug in code that we haven't delivered yet (the initial drop of JWE support). Once I open that PR, I'll link it here. |
The JWT builder tests use an app that allows the test cases that call it to pass is various token attributes. The app uses the set methods to update the “builder” with those values. Then, it creates a token from that builder.
We’re seeing an issue where the iat and exp are being modified - When the test cases to to validate that the token contains the correct information, the times are not matching.
The test cases do the following:
Even though the test isn’t getting a match, you can see that things were already out of sync in the app (between steps 5 & 7).
Many of the api’s that the test app invokes end up invoking populateClaims which updates the time attributes.
I’ve rearranged the steps, so, now, we’ve “built the JWT” and done the compact before I try to log anything - I ran the test several times and thought that this would resolve the test issue, but, on run #5, it failed in the same way.
Old -> New step order:
The time difference is negligible, and I don’t think it matters with regard to the use of the tokens generated, but we should understand what’s causing it before making a final decision.
The text was updated successfully, but these errors were encountered: