Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Dec 25, 2023

  1. 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`.
    pveeckhout committed Dec 25, 2023
    Configuration menu
    Copy the full SHA
    ff6e2df View commit details
    Browse the repository at this point in the history
  2. 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.
    pveeckhout committed Dec 25, 2023
    Configuration menu
    Copy the full SHA
    e91b042 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Configuration menu
    Copy the full SHA
    034ae86 View commit details
    Browse the repository at this point in the history
  2. 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.
    pveeckhout committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    de900cd View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/60-convenience_expiration_setter…

    …_which_takes_a_duration' into 60-convenience_expiration_setter_which_takes_a_duration
    pveeckhout committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    5a4992b View commit details
    Browse the repository at this point in the history
  4. 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.
    pveeckhout committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    a6a7950 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Merge remote-tracking branch 'origin/master' into 60-convenience_expi…

    …ration_setter_which_takes_a_duration
    pveeckhout committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    4a76b69 View commit details
    Browse the repository at this point in the history