(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
(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
(build-token-auth-header token)
Build token header based on a token received
Build token header based on a token received
(extract-token!! headers)
Extract token from headers
Extract token from headers
(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!!
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close