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

Fix JWT build impl to load PEM keys correctly when no default algorithm is used #390

Merged
merged 1 commit into from
Jan 21, 2021
Merged

Fix JWT build impl to load PEM keys correctly when no default algorithm is used #390

merged 1 commit into from
Jan 21, 2021

Conversation

sberyozkin
Copy link
Contributor

Fixes #387

This PR makes sure that the JWT Build signature and encryption implementations pass the expected algorithm to KeyUtils which will help to load it correctly from the PEM file.
Also did a minor cleanup in the signature impl, there was a redundant algorithm null check.

@sberyozkin sberyozkin added this to the 2.4.3 milestone Jan 19, 2021
@sberyozkin
Copy link
Contributor Author

sberyozkin commented Jan 21, 2021

@radcortez thanks; let me merge this one - @MikeEdgar - any concerns - let me know please, I'll get it into 3.0.0.RC3 as well

@sberyozkin sberyozkin merged commit 501f40f into smallrye:master Jan 21, 2021
@sberyozkin sberyozkin deleted the jwt_build_ec_keys branch January 21, 2021 12:57
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.

Hardcoded algorithm prevents creating EC signatures
2 participants