Skip to content

ensure that the clock doesn't move when we calculate exp and iat#3860

Draft
fhanik wants to merge 1 commit intocloudfoundry:developfrom
fhanik:pr/fix-clock-skip-checks
Draft

ensure that the clock doesn't move when we calculate exp and iat#3860
fhanik wants to merge 1 commit intocloudfoundry:developfrom
fhanik:pr/fix-clock-skip-checks

Conversation

@fhanik
Copy link
Copy Markdown
Contributor

@fhanik fhanik commented Apr 22, 2026

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)

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)
@fhanik fhanik force-pushed the pr/fix-clock-skip-checks branch from f1df422 to e4e4266 Compare April 23, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant