ensure that the clock doesn't move when we calculate exp and iat#3860
Draft
fhanik wants to merge 1 commit intocloudfoundry:developfrom
Draft
ensure that the clock doesn't move when we calculate exp and iat#3860fhanik wants to merge 1 commit intocloudfoundry:developfrom
fhanik wants to merge 1 commit intocloudfoundry:developfrom
Conversation
54bd2ac to
f1df422
Compare
Prevents the following error
eprecatedUaaTokenServicesTests > createAccessTokenPasswordGrant(TestTokenEnhancer) > 2: using enhancer FAILED
java.lang.AssertionError:
Expecting actual:
eyJqa3UiOiJodHRwczovL3VhYS51cmwvdG9rZW5fa2V5cyIsImtpZCI6InRlc3RLZXkiLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NSIsImV4X3Byb3AiOnsiY291bnRyeSI6Im56In0sInVzZXJfbmFtZSI6Impkc2EiLCJvcmlnaW4iOiJ1YWEiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvdWFhL29hdXRoL3Rva2VuIiwiY2xpZW50X2lkIjoiY2xpZW50IiwiYXVkIjpbInNjaW0iLCJjbGllbnRzIl0sImV4dF9hdHRyIjp7InB1cnBvc2UiOiJ0ZXN0In0sInppZCI6InVhYSIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfaWQiOiIxMjM0NSIsImF6cCI6ImNsaWVudCIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSIsIm9wZW5pZCJdLCJleF9ncm91cHMiOlsiYWRtaW4iLCJlZGl0b3IiXSwiZXhwIjoxNzc2OTEwNzExLCJpYXQiOjE3NzY4Njc1MTIsImp0aSI6IjVjZmUxN2I1OTcyNTRjYjM4YzZkNDJiYWEwZmY2ZTA2IiwiZW1haWwiOiJqZHNhQHZtd2FyZS5jb20iLCJyZXZfc2lnIjoiMzMxNGRjOTgiLCJjaWQiOiJjbGllbnQifQ.vvrLkDSNhqNBhXluZQDRRFTRpUbksVeBPYCKn1tjmS0
to be should be valid for <is <43200>>
at org.cloudfoundry.identity.uaa.oauth.DeprecatedUaaTokenServicesTests.validateAccessTokenOnly(DeprecatedUaaTokenServicesTests.java:2182)
at org.cloudfoundry.identity.uaa.oauth.DeprecatedUaaTokenServicesTests.validateAccessAndRefreshToken(DeprecatedUaaTokenServicesTests.java:2187)
at org.cloudfoundry.identity.uaa.oauth.DeprecatedUaaTokenServicesTests.createAccessTokenPasswordGrant(DeprecatedUaaTokenServicesTests.java:707)
f1df422 to
e4e4266
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevents the following error
DeprecatedUaaTokenServicesTests > createAccessTokenPasswordGrant(TestTokenEnhancer) > 2: using enhancer FAILED
java.lang.AssertionError:
Expecting actual:
eyJqa3UiOiJodHRwczovL3VhYS51cmwvdG9rZW5fa2V5cyIsImtpZCI6InRlc3RLZXkiLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NSIsImV4X3Byb3AiOnsiY291bnRyeSI6Im56In0sInVzZXJfbmFtZSI6Impkc2EiLCJvcmlnaW4iOiJ1YWEiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvdWFhL29hdXRoL3Rva2VuIiwiY2xpZW50X2lkIjoiY2xpZW50IiwiYXVkIjpbInNjaW0iLCJjbGllbnRzIl0sImV4dF9hdHRyIjp7InB1cnBvc2UiOiJ0ZXN0In0sInppZCI6InVhYSIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfaWQiOiIxMjM0NSIsImF6cCI6ImNsaWVudCIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSIsIm9wZW5pZCJdLCJleF9ncm91cHMiOlsiYWRtaW4iLCJlZGl0b3IiXSwiZXhwIjoxNzc2OTEwNzExLCJpYXQiOjE3NzY4Njc1MTIsImp0aSI6IjVjZmUxN2I1OTcyNTRjYjM4YzZkNDJiYWEwZmY2ZTA2IiwiZW1haWwiOiJqZHNhQHZtd2FyZS5jb20iLCJyZXZfc2lnIjoiMzMxNGRjOTgiLCJjaWQiOiJjbGllbnQifQ.vvrLkDSNhqNBhXluZQDRRFTRpUbksVeBPYCKn1tjmS0
to be should be valid for <is <43200>>
at org.cloudfoundry.identity.uaa.oauth.DeprecatedUaaTokenServicesTests.validateAccessTokenOnly(DeprecatedUaaTokenServicesTests.java:2182)
at org.cloudfoundry.identity.uaa.oauth.DeprecatedUaaTokenServicesTests.validateAccessAndRefreshToken(DeprecatedUaaTokenServicesTests.java:2187)
at org.cloudfoundry.identity.uaa.oauth.DeprecatedUaaTokenServicesTests.createAccessTokenPasswordGrant(DeprecatedUaaTokenServicesTests.java:707)