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

Inject Clock in LcobucciJWSProvider #1072

Merged
merged 1 commit into from
Oct 9, 2022
Merged

Conversation

dbrumann
Copy link

@dbrumann dbrumann commented Oct 6, 2022

This PR proposes injecting the Clock to allow for a FrozenClock to make it easier to test the ValidAt-constraint at fixed times.

This allows replacing the SystemClock with a FrozenClock, making it easier
to check validAt for static tokens where you need to ensure the time
is always the same.
Copy link
Collaborator

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@chalasr
Copy link
Collaborator

chalasr commented Oct 9, 2022

Thank you @dbrumann.

@chalasr chalasr merged commit 92cd7c0 into lexik:2.x Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants