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

Support HS256 signed keys #45

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Support HS256 signed keys #45

merged 1 commit into from
Aug 13, 2024

Conversation

donaldgray
Copy link
Member

To date, auth0 testing has been done with tokens signed with RS256 algorithm - the validation works by using signing keys from /.well-known/jwks.json endpoint (strongly typed as X509SecurityKey).

This PR adds support for HS256 algorithm, where clientSecret is used to validate via SymmetricSecurityKey type.

When validating we will always supply SymmetricSecurityKey and X509SecurityKeys - the JwtSecurityTokenHandler will select the appropriate method for validating.

@donaldgray donaldgray merged commit 7cf6d18 into main Aug 13, 2024
1 check passed
@donaldgray donaldgray deleted the feature/support_hs256 branch August 13, 2024 09:54
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