Skip to content

feat: Use JsonWebTokenHandler in .NET 8 for improved token handling #281

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

Merged
merged 1 commit into from
May 2, 2025

Conversation

aniket-okta
Copy link
Contributor

This pull request fixes #263 updates the Okta ASP.NET library to utilize JsonWebTokenHandler instead of StrictSecurityTokenValidator and StrictTokenHandler for token validation in .NET 8.

This change aligns with the recommendations in ASP.NET Core 8.0 for improved performance, reliability, and asynchronous processing of JWTs, as outlined in the Microsoft documentation [link to the Microsoft article you shared].

Key changes:

  • Replaced conditional usage of StrictSecurityTokenValidator/StrictTokenHandler with JsonWebTokenHandler in OpenIdConnectOptionsHelper.cs for both OpenID Connect and JWT Bearer flows.

@aniket-okta aniket-okta merged commit d161d70 into master May 2, 2025
2 checks passed
@aniket-okta aniket-okta deleted the OKTA-921236 branch May 2, 2025 10:37
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.

Switch from JwtSecurityToken and JwtTokenValidators to JsonWebToken and TokenHandler in .NET 8
2 participants