Skip to content

Use best available JWS alg for identity token fetch#23

Draft
kaol wants to merge 1 commit into
pjones:trunkfrom
KSF-Media:feature/negotiate-JWS-alg
Draft

Use best available JWS alg for identity token fetch#23
kaol wants to merge 1 commit into
pjones:trunkfrom
KSF-Media:feature/negotiate-JWS-alg

Conversation

@kaol

@kaol kaol commented Dec 14, 2023

Copy link
Copy Markdown

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