-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#60 Add expireAfter functionality to JWT Builder #883
base: master
Are you sure you want to change the base?
#60 Add expireAfter functionality to JWT Builder #883
Commits on Dec 25, 2023
-
jwtk#60 Add expireAfter functionality to JWT Builder
The `expireAfter` method, accepting duration and timeUnit parameters, has been added to the JwtBuilder interface. This method calculates the JWT expiration date as either the issue time plus the duration or the system current time plus the duration if an issuedAt time hasn't been set. Additional tests for this feature have been included in `DefaultJwtParserTest.groovy`.
Configuration menu - View commit details
-
Copy full SHA for ff6e2df - Browse repository at this point
Copy the full SHA ff6e2dfView commit details -
jwtk#60 Add validation tests for JWT expiration
Two new tests have been added to DefaultJwtParserTest to validate JWT expiration behavior. The tests ensure that for the 'expireAfter()' method, duration must be more than 0 and timeUnit cannot be null. The error messages for these validation checks have also been modified for clarity.
Configuration menu - View commit details
-
Copy full SHA for e91b042 - Browse repository at this point
Copy the full SHA e91b042View commit details
Commits on Jan 10, 2024
-
Merge branch 'jwtk:master' into 60-convenience_expiration_setter_whic…
…h_takes_a_duration
Configuration menu - View commit details
-
Copy full SHA for 034ae86 - Browse repository at this point
Copy the full SHA 034ae86View commit details -
jwtk#60 Refactor token expiry calculation in DefaultJwtBuilder
The token expiry calculation logic has been cleaned up and optimized in DefaultJwtBuilder. A previously used optional stream has been replaced with a more straightforward if-else structure, leading to ease of code maintenance and improved readability.
Configuration menu - View commit details
-
Copy full SHA for de900cd - Browse repository at this point
Copy the full SHA de900cdView commit details -
Merge remote-tracking branch 'origin/60-convenience_expiration_setter…
…_which_takes_a_duration' into 60-convenience_expiration_setter_which_takes_a_duration
Configuration menu - View commit details
-
Copy full SHA for 5a4992b - Browse repository at this point
Copy the full SHA 5a4992bView commit details -
jwtk#60 Fix typo in JwtBuilder comments
A typographical error in the comments of the 'exp' function in JwtBuilder was corrected. The phrase "specified it if" was changed to "specified if it", making the comments clearer and easier to understand.
Configuration menu - View commit details
-
Copy full SHA for a6a7950 - Browse repository at this point
Copy the full SHA a6a7950View commit details
Commits on Feb 16, 2024
-
Merge remote-tracking branch 'origin/master' into 60-convenience_expi…
…ration_setter_which_takes_a_duration
Configuration menu - View commit details
-
Copy full SHA for 4a76b69 - Browse repository at this point
Copy the full SHA 4a76b69View commit details