An example way to authorize for testing the generated api
An example way to authorize for testing the generated api
(auth!)
(auth! user)
Returns request header suitable for merging into a request, based on the (optional) singleton system. Will start an oauth2 listener if not already running. Will refresh tokens.
Returns request header suitable for merging into a request, based on the (optional) singleton system. Will start an oauth2 listener if not already running. Will refresh tokens.
(auth* app user)
Returns request header suitable for merging into a request. May refresh a token.
Returns request header suitable for merging into a request. May refresh a token.
(start!)
(start! config)
Starts the (optional) singleton system. Use this if you don't have some other system management in place.
Starts the (optional) singleton system. Use this if you don't have some other system management in place.
(start* {:keys [scopes secret-file tokens-directory port]})
Creates a new, running authorization system. Use this to compose with system management.
Creates a new, running authorization system. Use this to compose with system management.
(stop!)
Stops the (optional) singleton system. Use this if you don't have some other system management in place.
Stops the (optional) singleton system. Use this if you don't have some other system management in place.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close