Authentication and authorization functions
Authentication and authorization functions
(build-token build-sid)
Creates token contents for a build, to be used by a build script.
Creates token contents for a build, to be used by a build script.
(config->keypair conf)
Loads private and public keys from the app config, returns a map that can be
used in the context :jwk
.
Loads private and public keys from the app config, returns a map that can be used in the context `:jwk`.
(customer-authorization h)
Middleware that verifies the identity token to check if the user or build has access to the given customer.
Middleware that verifies the identity token to check if the user or build has access to the given customer.
(generate-jwt req payload)
Signs a JWT using the keypair from the request context.
Signs a JWT using the keypair from the request context.
(generate-jwt-from-rt rt payload)
Generates a JWT from the private key in the runtime
Generates a JWT from the private key in the runtime
(generate-keypair)
Generates a new RSA keypair
Generates a new RSA keypair
(generate-secret-key)
Generates a random secret key object
Generates a random secret key object
(make-jwk pub)
Creates a JWK object from a public key that can be exposed for external verification.
Creates a JWK object from a public key that can be exposed for external verification.
(secure-ring-app app rt)
Wraps the ring handler so it verifies the JWT authorization header
Wraps the ring handler so it verifies the JWT authorization header
(user-token user-sid)
Creates token contents for an authenticated user
Creates token contents for an authenticated user
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close