Std.App.Jwt
19 public declarations
- Checking
A check with one expectation set, each answering the check rather than
- Claiming
Claims with one field set, each answering the claims rather than taking
- claims
Std.App.Jwt.JwtClaimsConstructs an empty set of JWT claims.
- decode
Str -> &Bytes -> &Std.App.Jwt.JwtValidation -> Int -> Result[Std.App.Jwt.JwtClaims, Std.App.Jwt.JwtError]Decodes and cryptographically verifies an RFC 7519 compact JWT against secret and validation rules.
- decodeUnverified
Str -> Result[Std.App.Jwt.JwtClaims, Std.App.Jwt.JwtError]Decodes claims without cryptographic signature verification.
- decodeWithKey
Str -> &Std.App.Jwt.PublicKey -> &Std.App.Jwt.JwtValidation -> Int -> Result[Std.App.Jwt.JwtClaims, Std.App.Jwt.JwtError]Verify a token signed with a provider's private key, and read its claims.
- encode
&Std.App.Jwt.JwtClaims -> &Bytes -> StrSerializes and signs claims into an RFC 7519 HS256 compact JSON Web Token.
- getClaim
&Std.App.Jwt.JwtClaims -> Str -> Option[Str]Retrieves a claim by name from registered or custom claims.
- hasExpired
&Std.App.Jwt.JwtClaims -> Int -> Int -> BoolChecks whether claims indicate the token has expired relative to a timestamp and leeway.
- isValidAt
&Std.App.Jwt.JwtClaims -> Int -> Int -> BoolChecks whether claims are active and valid (neither premature nor expired).
- JwtClaims
Standard claims contained within an RFC 7519 JSON Web Token.
- JwtError
Structured failure conditions encountered while decoding or validating a JWT.
- JwtValidation
Validation parameters applied during JWT signature and claims checking.
- keyAlgorithm
&Std.App.Jwt.PublicKey -> StrThe algorithm name that appears in a token's header for this key.
- keyFor
&Array[Std.App.Jwt.PublicKey] -> Str -> Option[Std.App.Jwt.PublicKey]Pick the key a token names, out of the set a provider published.
- keyId
&Std.App.Jwt.PublicKey -> StrThe identifier a provider gave this key.
- PublicKey
A public key an identity provider publishes, and the algorithm it signs with.
- tokenKeyId
Str -> Option[Str]Which of a provider's keys a token says signed it.
- validation
Std.App.Jwt.JwtValidationConstructs default validation rules with zero leeway and no mandatory issuer or audience.
