Liking cljdoc? Tell your friends :D
Clojure only.

ring.middleware.jwt


find-tokenclj

(find-token {:keys [headers]})

Finds the token by searching the Authorization HTTP header on the incoming request for a bearer token.

Finds the token by searching the Authorization HTTP header on the incoming request for a bearer token.
sourceraw docstring

wrap-jwtclj

(wrap-jwt handler {:keys [find-token-fn issuers] :as opts})

Middleware that decodes a JWT token, verifies against the signature and then adds the decoded claims to the incoming request under :claims.

If the JWT token exists but cannot be decoded then the token is considered tampered with and a 401 response is produced.

If the JWT token does not exist, an empty :claims map is added to the incoming request.

Middleware that decodes a JWT token, verifies against the signature and then
adds the decoded claims to the incoming request under :claims.

If the JWT token exists but cannot be decoded then the token is considered tampered with and
a 401 response is produced.

If the JWT token does not exist, an empty :claims map is added to the incoming request.
sourceraw docstring

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

× close