Liking cljdoc? Tell your friends :D

event-data-common.jwt

Middleware for loading verifying JWTs by multiple secrets.

Middleware for loading verifying JWTs by multiple secrets.
raw docstring

buildclj

(build secrets-str)

Build a multi-secret JWT verifier.

Build a multi-secret JWT verifier.
raw docstring

get-tokenclj

(get-token request)

Middleware to retrieve a token from a request. Return nil if missing or malformed.

Middleware to retrieve a token from a request. Return nil if missing or malformed.
raw docstring

MultiJwtVerifiercljprotocol

Verifier for JWTs

Verifier for JWTs

secretsclj

(secrets this)

Return seq of secrets.

Return seq of secrets.

signclj

(sign this claims)

Create a token.

Create a token.

sign-with-signerclj

(sign-with-signer this signer claims)

Create a token.

Create a token.

signersclj

(signers this)

Return seq of signers in the same order as secrets.

Return seq of signers in the same order as secrets.

try-verifyclj

(try-verify this token)

Attempt to verify a token with one of the verifiers. Return claims or nil.

Attempt to verify a token with one of the verifiers. Return claims or nil.

try-verify-with-verifierclj

(try-verify-with-verifier this verifier token)

Attempt to verify a token with this verifier. Return claims or nil.

Attempt to verify a token with this verifier. Return claims or nil.

verifiersclj

(verifiers this)

Return seq of verifies in same order as secrets.

Return seq of verifies in same order as secrets.
raw docstring

wrap-jwtclj

(wrap-jwt handler secrets-str)

Return a middleware handler that verifies JWT claims using one of the comma-separated secrets.

Return a middleware handler that verifies JWT claims using one of the comma-separated secrets.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close