Liking cljdoc? Tell your friends :D

clj-simple-keycloak.core


authn!!clj

(authn!! kc-client-config username password)
(authn!! http-port kc-client-config username password)

receives a client config created from new-client-config, username and password and returns authentication tokens in case of error an ex-info w/ :type :simple-keycloak/unauthorized is thrown

receives a client config created from `new-client-config`, username and password and returns authentication tokens
in case of error an ex-info w/ `:type :simple-keycloak/unauthorized` is thrown
sourceraw docstring

authz!!clj

(authz!! kc-client-config headers permission)
(authz!! http-port kc-client-config headers permission)

receives a client config created from new-client-config, headers having Authorization: Bearer <token from authn!!>, permission which auth user must have rights in case of error or not authorized an ex-info w/ :type :simple-keycloak/unauthorized is thrown

receives a client config created from `new-client-config`,
headers having `Authorization: Bearer <token from authn!!>`,
permission which auth user must have rights
in case of error or not authorized an ex-info w/ `:type :simple-keycloak/unauthorized` is thrown
sourceraw docstring

build-token-auth-headerclj

(build-token-auth-header token)

Build token header based on a token received

Build token header based on a token received
sourceraw docstring

extract-token!!clj

(extract-token!! headers)

Extract token from headers

Extract token from headers
sourceraw docstring

new-client-configclj

(new-client-config host realm client-id client-secret)

Builds a client config to authn!! and authz!!

Builds a client config to authn!! and authz!!
sourceraw docstring

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

× close