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

Use best available JWS alg for identity token fetch #23

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

kaol
Copy link

@kaol kaol commented Dec 14, 2023

Right now, openid-connect is not using the id_token_signing_alg_values_supported data from the discovery document and only relies on JOSE's bestJWSAlg to select a signing algorithm to use. There's no guarantee that the recipient will recognize the signed token if it's using something out of the discovery document's advertised values.

This branch uses negotiateJWSAlg and the alg_values_supported list from the discovery document. This is a feature that's not yet in a released version of JOSE so the function may yet be subject to change. See frasertweedale/hs-jose#118

@kaol kaol force-pushed the feature/negotiate-JWS-alg branch from 2818748 to ab42273 Compare December 14, 2023 12:21
@kaol kaol marked this pull request as draft December 14, 2023 13:53
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