Liking cljdoc? Tell your friends :D

ring.middleware.jwt-test-utils

Test utility functions for use in writing tests against ring servers that have the ring-jwt middleware. Not designed for use in production code.

Test utility functions for use in writing tests against ring servers that have the
ring-jwt middleware. Not designed for use in production code.
raw docstring

add-claimclj

(add-claim token [k v])
source

add-jwt-tokenclj

(add-jwt-token req claims alg-opts)

Sets the Authorization header on the specified request as a JWT-encoded token based on the given claims and algorithm.

Sets the Authorization header on the specified request as a JWT-encoded token based
on the given claims and algorithm.
sourceraw docstring

encode-tokencljmultimethod

Encodes the given claims as a JWT using the given arguments as a basis.

Encodes the given claims as a JWT using the given arguments as a basis.
sourceraw docstring

generate-hmac-secretclj

(generate-hmac-secret)

Generates a random string to use as a HMAC secret.

Generates a random string to use as a HMAC secret.
sourceraw docstring

generate-jwk-responseclj

(generate-jwk-response key-id public-key)

Creates the JWK response for an RS256 public key with the key id. This should be returned by your JWK endpoint in tests

Creates the JWK response for an RS256 public key with the key id.
This should be returned by your JWK endpoint in tests
sourceraw docstring

generate-key-pairclj

(generate-key-pair alg & {:keys [key-size]})

Generates a private/public key pair based on the specified cryptographic algorithm.

Generates a private/public key pair based on the specified cryptographic algorithm.
sourceraw docstring

str->base64clj

(str->base64 x)
source

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

× close