Liking cljdoc? Tell your friends :D

keycloak.user


add-client-roles!clj

(add-client-roles! keycloak-client realm-name username client-roles)
source

add-realm-roles!clj

(add-realm-roles! keycloak-client realm-name username roles)
source

countclj

(count keycloak-client realm-name)
source

create-or-update-user!clj

(create-or-update-user! keycloak-client
                        realm-name
                        {:keys [username first-name last-name email password]
                         :as person}
                        realm-roles
                        client-roles)
source

create-user!clj

(create-user! keycloak-client
              realm-name
              {:keys [username first-name last-name email password is-manager
                      group in-subgroups]
               :as person})
source

delete-and-create-user!clj

(delete-and-create-user! keycloak-client realm-name person)
(delete-and-create-user! keycloak-client
                         realm-name
                         {:keys [username first-name last-name email password]
                          :as person}
                         realm-roles
                         client-roles)
source

delete-user!clj

(delete-user! keycloak-client realm-name user-attribute)

delete user with any attribute

delete user with any attribute
sourceraw docstring

disable-user!clj

(disable-user! keycloak-client realm-name username)
source

enable-user!clj

(enable-user! keycloak-client realm-name username)
source

execute-actions-emailclj

(execute-actions-email [keycloak-client realm-name username actions])
(execute-actions-email keycloak-client realm-name username actions lifespan)

Sends an email to the user with a link within it. If they click on the link they will be asked to perform some actions.

  • Actions are: "VERIFY_EMAIL" "UPDATE_PROFILE" "CONFIGURE_TOTP" , "UPDATE_PASSWORD" , "TERMS_AND_CONDITIONS"
  • The lifespan decides the number of seconds after which the generated token in the email link expires. The default value is 12 hours.
Sends an email to the user with a link within it. If they click on the link they will be asked to perform some actions.
* Actions are: `"VERIFY_EMAIL"` `"UPDATE_PROFILE"` `"CONFIGURE_TOTP"` , `"UPDATE_PASSWORD"` , `"TERMS_AND_CONDITIONS"`
* The lifespan decides the number of seconds after which the generated token in the email link expires. The default value is 12 hours.
sourceraw docstring

extract-idclj

(extract-id resp)
source

find-usersclj

(find-users keycloak-client realm-name s)
source

generate-userclj

(generate-user)
(generate-user username)
source

generate-user-representationclj

(generate-user-representation)
(generate-user-representation username)
source

generate-usernameclj

(generate-username)
(generate-username prefix)
source

get-clientclj

(get-client keycloak-client realm-name client-id)
source

get-client-resourceclj

(get-client-resource keycloak-client realm-name client-id)

Return a org.keycloak.admin.client.resource.ClientResource given a keycloak-client, realm-name and id. Be careful the id is the UUID attributed by Keycloak during the creation of the client and not the clientId given by the user

Return a [org.keycloak.admin.client.resource.ClientResource](https://www.keycloak.org/docs-api/11.0/javadocs/org/keycloak/admin/client/resource/ClientResource.html)
given a `keycloak-client`, `realm-name` and `id`. Be careful the id is the UUID attributed by Keycloak during the creation of the client and not the `clientId` given by the user
sourceraw docstring

get-userclj

(get-user keycloak-client realm-name user-id)
source

get-user-by-usernameclj

(get-user-by-username keycloak-client realm-name username)
source

get-user-realm-rolesclj

(get-user-realm-roles keycloak-client realm-name username)
source

get-user-resourceclj

(get-user-resource keycloak-client realm-name username)

Return a map with two keys: user-id the user UUID (not its username) and user-resource an (org.keycloak.admin.client.resource.UserResource)[https://github.com/keycloak/keycloak/blob/main/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java] instance

Return a map with two keys: `user-id` the user UUID (not its username) and `user-resource` an
(`org.keycloak.admin.client.resource.UserResource`)[https://github.com/keycloak/keycloak/blob/main/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/UserResource.java] instance
sourceraw docstring

get-usersclj

(get-users keycloak-client realm-name)
(get-users keycloak-client realm-name first result)
source

get-users-aggregated-by-client-rolesclj

(get-users-aggregated-by-client-roles keycloak-client
                                      realm-name
                                      client-id
                                      roles)
source

get-users-aggregated-by-realm-rolesclj

(get-users-aggregated-by-realm-roles keycloak-client realm-name roles)
source

get-users-beansclj

(get-users-beans keycloak-client realm-name)
source

get-users-with-client-roleclj

(get-users-with-client-role keycloak-client realm-name client-id role-name)

return a list of users as UserRepresentation that have the role-name as role mapping

return a list of users as UserRepresentation that have the `role-name` as role mapping
sourceraw docstring

get-users-with-realm-roleclj

(get-users-with-realm-role keycloak-client realm-name role-name)

return a list of users as UserRepresentation that have the role-name as role mapping

return a list of users as UserRepresentation that have the `role-name` as role mapping
sourceraw docstring

logout-user!clj

(logout-user! keycloak-client realm-name user-id)
source

memoized-get-realm-roles-representationsclj

source

rand-fnclj

(rand-fn & fns)

execute with equal probability the functions given as arguments

execute with equal probability the functions given as arguments
sourceraw docstring

rand-strclj

(rand-str len)
source

random-alphanumclj

(random-alphanum)
source

random-digitclj

(random-digit)
source

random-lowercase-letterclj

(random-lowercase-letter)
source

random-passwordclj

(random-password)
(random-password n)

Return a random password of n length, if missing arg a random password of random length between 6 and 20 is generated

Return a random password of n length, if missing arg a random password of random length between 6 and 20 is generated
sourceraw docstring

random-uppercase-letterclj

(random-uppercase-letter)
source

remove-realm-roles!clj

(remove-realm-roles! keycloak-client realm-name username roles)
source

search-userclj

(search-user keycloak-client realm-name user-attribute)
(search-user keycloak-client realm-name username first-name last-name email)
source

send-verification-emailclj

(send-verification-email keycloak-client realm-name username)
source

set-realm-roles!clj

(set-realm-roles! keycloak-client realm-name username roles)
source

update-user!clj

(update-user! keycloak-client
              realm-name
              user-id
              {:keys [username first-name last-name email password] :as person})
source

user-for-creationclj

(user-for-creation
  {:keys [username first-name last-name email password attributes] :as person})
(user-for-creation
  {:keys [username first-name last-name email password attributes] :as person}
  required-actions)
source

user-for-enablementclj

(user-for-enablement enabled?)
source

user-for-updateclj

(user-for-update {:keys [username first-name last-name email enabled attributes
                         password]
                  :or {enabled true}
                  :as person})
source

user-idclj

(user-id keycloak-client realm-name user-attribute)
(user-id keycloak-client realm-name username first-name last-name email)

Return a user-id from either one of (username|first-name|last-name|email) attributes that match exactly or all of these attributes to match

Return a user-id from either one of (username|first-name|last-name|email) attributes that match exactly or all of these attributes to match
sourceraw docstring

user-representation->personclj

(user-representation->person user-rep)
source

username-exists?clj

(username-exists? keycloak-client realm-name username)
source

username-or-email-exists?clj

(username-or-email-exists? keycloak-client realm-name user)
source

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

× close