Skip to content

How to parse all three parts: header, payload, signature? #49

@mcandre

Description

@mcandre

As a developer, I want to be able to easily access each of the three parts of a "JWT": the header, and the payload, as well as the signature bits, as described in various JWT documentation.

https://jwt.io/

jose appears to call the payload portion of JWT's, "JWT", and present the rest of these pieces as "JWS". Furthermore, jose does not make it easy to obtain both the header and the payload, as the existing parser methods only yield one or the other of these attributes. And the payload structure does not appear to nest within the "JWS".

As a workaround, I might end up having to parse my token twice :P

Metadata

Metadata

Assignees

No one assigned

    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