Skip to content

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
@L-X-T L-X-T force-pushed the master branch 2 times, most recently from e1fc6c5 to 5d10af2 Compare June 30, 2025 12:18
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