Skip to content

[Issue #1477] Use provided date for token validation #1475

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

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

Conversation

ttkaae
Copy link

@ttkaae ttkaae commented May 19, 2025

In our company we have some agents that use a custom date and time on their computers, which has caused issues with the token validation. Currently, on the JwksValidationHandler on angular-oauth2-oidc, it uses the current client date to validate the token despite of the library providing a custom DateTimeProvider.

In this pr I have made a modification to JwksValidationHandler to use the provided datetime on the token validation.

I have also separated the jsrsasign logic to clean up the code and expose those functions.

Hope you'll review it and feel free to add some comments

Fixes Issue #1477

@ttkaae ttkaae changed the title Improve the jwks validation handler Improve the jwks validation handler with custom datetime May 19, 2025
@ttkaae ttkaae changed the title Improve the jwks validation handler with custom datetime [Issue 1477] Improve the jwks validation handler with custom datetime May 24, 2025
@ttkaae ttkaae changed the title [Issue 1477] Improve the jwks validation handler with custom datetime [Issue #1477] Improve the jwks validation handler with custom datetime May 24, 2025
@ttkaae ttkaae changed the title [Issue #1477] Improve the jwks validation handler with custom datetime [Issue #1477] Use provided date for token validation May 24, 2025
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.

1 participant