A data-driven wrapper around nimbus-jose-jwt for Clojure.
Works with string-string maps.
A data-driven wrapper around nimbus-jose-jwt for Clojure. Works with string-string maps.
(build-jwt jwk-map claims-map)Creates and signs a JWT string. Takes a JWK (as a Clojure map) and a map of claims.
Creates and signs a JWT string. Takes a JWK (as a Clojure map) and a map of claims.
(claims->map claims)Converts a JWTClaimsSet object into a Clojure map of claims.
Converts a JWTClaimsSet object into a Clojure map of claims.
(jwk->map jwk)Converts a nimbus JWK object into a Clojure map.
Converts a nimbus JWK object into a Clojure map.
(map->claims claims-map)Converts a Clojure map of claims into a JWTClaimsSet object.
Converts a Clojure map of claims into a JWTClaimsSet object.
(map->jwk jwk-map)Converts a Clojure map into a nimbus JWK object.
Converts a Clojure map into a nimbus JWK object.
Generates a new JWK (JSON Web Key) as a Clojure map. Dispatches on the "kty" (Key Type) value in the input spec map.
Generates a new JWK (JSON Web Key) as a Clojure map. Dispatches on the "kty" (Key Type) value in the input spec map.
(parse-header jwt-string)Parses a JWT string and returns its header as a Clojure map.
Parses a JWT string and returns its header as a Clojure map.
(parse-verify-jwt public-jwk-map jwt-string)Parses and verifies a JWT string using the provided public JWK. Returns the claims map if verification succeeds, otherwise throws an exception.
Parses and verifies a JWT string using the provided public JWK. Returns the claims map if verification succeeds, otherwise throws an exception.
(public-parts jwk-map)Given a full JWK map including private key info, return only the public key parts.
Given a full JWK map including private key info, return only the public key parts.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |