JWT Type in JOSE Header

Issue #117 resolved
Dave Franken created an issue

The draft for JSON Web Tokens: https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32 describes the usage of "typ" in the header with a fixed value of "JWT".

Currently, the implementation only allows JWS and JWE as types in the header.

Also, "typ" is currently a field in the claims set for JWTs, but it should be removed from there and lifted to the header.

Comments (7)

  1. Dave Franken reporter

    You might want to add "JWT" as a static instance to JOSEObjectType (like JWS and JWE) so you don't have to use the constructor.

  2. Connect2id OSS

    PS: Please note that the recommended way to indicate a nested (signed + encrypted) JWT is to use the "cty" parameter for that. The "typ" parameter is there for legacy reasons.

  3. Log in to comment