keycloak.authn

access-token

(access-token client username password)

auth-header

(auth-header bearer)

authenticate

(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 data struct. (with :access_token and :refresh_token keys, beware ’underscore _’ not ‘hyphen -’)

client-credentials

(client-credentials client-id username password)(client-credentials client-id client-secret)

oidc-connect-url

(oidc-connect-url auth-server-url realm-name)