Module defining various test cases used in separate implementations.
Supported algorithms
Decodes and validates the JWT token.
Decodes token payload without signature validation. Only token header is checked for any "alg" and basic token structure is validated.
Endodes token using provided Singer algorithm and already prepared payload.
Validates token format and signature with a provided validator. It doesn't base64 decode the payload.
Validator that accepts any JWT algorithm and ignores it's signature at all. Can be used to decode token without it's signature validation.
Structure that can be used to handle tokens without signatures. Requires that the token has "alg": "none" in the header and no sign part.