(auth-header bearer)
Return a map with "authorization" key and value the access token with "Bearer " prefix. Argument is the data structure returned by the keycloak.authn/authenticate
function
Return a map with "authorization" key and value the access token with "Bearer " prefix. Argument is the data structure returned by the `keycloak.authn/authenticate` function
(authenticate {:keys [auth-server-url realm client-id] :as conf} client-secret)
(authenticate {:keys [auth-server-url realm client-id] :as conf}
username
password)
(authenticate auth-server-url realm client-id client-secret)
(authenticate auth-server-url realm client-id username password)
Return the bearer token decoded as a clojure map with :access_token
and :refresh_token
keys, beware underscore _
not hyphen -
.
The keycloak conf needs the :auth-server-url
, realm
and client-id
keys
Return the bearer token decoded as a clojure map with `:access_token` and `:refresh_token` keys, beware underscore `_` not hyphen `-`. The keycloak conf needs the `:auth-server-url`, `realm` and `client-id` keys
(client-credentials client-id client-secret)
(client-credentials client-id username password)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close