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

EPA-158: [ehealthid] Pick right OpenID Provider JWKS for IdToken verification #105

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

thomasrichner-oviva
Copy link
Contributor

No description provided.

Comment on lines +76 to 80
var idpSigningKeys =
federationMasterClient.resolveOpenIdProviderJwks(trustedIdpEntityStatement);
if (!JwsVerifier.verify(idpSigningKeys, signedJws)) {
throw AuthExceptions.badIdTokenSignature(trustedIdpEntityStatement.body().sub());
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the missing bit. The federation keys do not have to match the OpenID keys.

Copy link
Collaborator

@frankbojen-oviva frankbojen-oviva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

200w

@thomasrichner-oviva thomasrichner-oviva merged commit feb6783 into main Oct 18, 2024
7 checks passed
Copy link

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.

3 participants