Consider supporting injection of a Clock to facilitate testing

Issue #401 new
Former user created an issue

In our project, we inject in a fake fixed time in tests to check fine-grained time movement behaviours. DefaultJWTClaimsVerifier always creates a new Date() object making it hard for us to control token verification time.

https://bitbucket.org/connect2id/nimbus-jose-jwt/src/cab54efd594c7c3a50e165bdc18171de5983b347/src/main/java/com/nimbusds/jwt/proc/DefaultJWTClaimsVerifier.java#lines-291

Comments (2)

  1. Kevin Tran

    Oops, I created this issue ☝ . I didnt realise Bitbucket would let me create an issue with cached authentication as a deleted user 😆

  2. Vladimir Dzhuvinov

    That’s alright, Bitbucket does this for some reason.

    Would you be able to submit a PR for this?

  3. Log in to comment