(add-required-actions! keycloak-client realm-name username actions)
Add required user actions.
Actions can be: "VERIFY_EMAIL"
"UPDATE_PROFILE"
"CONFIGURE_TOTP"
, "UPDATE_PASSWORD"
, "TERMS_AND_CONDITIONS"
Add required user actions. Actions can be: `"VERIFY_EMAIL"` `"UPDATE_PROFILE"` `"CONFIGURE_TOTP"` , `"UPDATE_PASSWORD"` , `"TERMS_AND_CONDITIONS"`
(create-or-update-user! keycloak-client
realm-name
{:keys [username first-name last-name email password]
:as person}
realm-roles
client-roles)
(create-user! keycloak-client
realm-name
{:keys [username first-name last-name email password is-manager
group in-subgroups]
:as person})
(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)
(delete-user! keycloak-client realm-name user-attribute)
delete user with any attribute
delete user with any attribute
(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.
"VERIFY_EMAIL"
"UPDATE_PROFILE"
"CONFIGURE_TOTP"
, "UPDATE_PASSWORD"
, "TERMS_AND_CONDITIONS"
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.
(generate-user-representation)
(generate-user-representation username)
(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
(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
(get-users keycloak-client realm-name)
(get-users keycloak-client realm-name first result)
(get-users-aggregated-by-client-roles keycloak-client
realm-name
client-id
roles)
(get-users-aggregated-by-realm-roles keycloak-client realm-name roles)
(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
(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
(rand-fn & fns)
execute with equal probability the functions given as arguments
execute with equal probability the functions given as arguments
(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
(search-user keycloak-client realm-name user-attribute)
(search-user keycloak-client realm-name username first-name last-name email)
(update-user! keycloak-client
realm-name
user-id
{:keys [username first-name last-name email password] :as person})
(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)
(user-for-update {:keys [username first-name last-name email enabled attributes
password]
:or {enabled true}
:as person})
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close