jwtlited

Undocumented in source.

Modules

gnutls
module jwtlited.gnutls
Undocumented in source.
openssl
module jwtlited.openssl
Undocumented in source.
phobos
module jwtlited.phobos
Undocumented in source.
tests
module jwtlited.tests

Module defining various test cases used in separate implementations.

Members

Enums

JWTAlgorithm
enum JWTAlgorithm

Supported algorithms

Functions

decode
bool decode(V validator, T token, HS headSink, PS payloadSink)
bool decode(V validator, T token, S payloadSink)

Decodes and validates the JWT token.

decodePayload
bool decodePayload(T token, S payloadSink)

Decodes token payload without signature validation. Only token header is checked for any "alg" and basic token structure is validated.

encode
int encode(S signer, O output, P payload)
int encode(S signer, O output, H header, P payload)

Endodes token using provided Singer algorithm and already prepared payload.

validate
bool validate(V validator, T token)

Validates token format and signature with a provided validator. It doesn't base64 decode the payload.

Structs

AnyAlgValidator
struct AnyAlgValidator

Validator that accepts any JWT algorithm and ignores it's signature at all. Can be used to decode token without it's signature validation.

NoneHandler
struct NoneHandler

Structure that can be used to handle tokens without signatures. Requires that the token has "alg": "none" in the header and no sign part.

Templates

isSigner
template isSigner(S)
Undocumented in source.
isToken
template isToken(T)
Undocumented in source.
isValidator
template isValidator(V)
Undocumented in source.

Meta