Skip to content

Document JWT header parameters used for JWK selection during signature verification #8163

@tloodu

Description

@tloodu

Page to update: https://openliberty.io/docs/latest/json-web-token.html


Discussion has come up to update the Sign and verify JSON Web Tokens with JSON Web Keys documentation page to describe how Open Liberty selects a public key from a JWKS document using header parameters. Open Liberty supports the kid, x5t, and x5t#S256 JWT header parameters to assist with key selection, which should be briefly documented.

This content would be best situated under the Verify JWTs with JWKs section and before the description of how to enable JWK verification in Open Liberty.

Content:

During JWT signature verification, JWKS documents are used to identify the appropriate public key for validation. Open Liberty matches the parameters in the incoming JWT header against the corresponding fields in the key entries.

Open Liberty processes key selection using the kid (Key ID) header parameter within the JWT header, as well as with the x5t (SHA-1) and x5t#S256 parameters, which identify keys by their X.509 certificate thumbprints. While these parameters are optional in both the JWT header and the JWK entries, a matching value in both uniquely identifies the public key required for verification.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions