Liking cljdoc? Tell your friends :D

keycloak.starter


-mainclj

(-main & args)
source

CLI_CONFIGclj

source

create-mappers!clj

(create-mappers! keycloak-client realm-name client-id mappers)
source

dissoc-sensitive-dataclj

(dissoc-sensitive-data config-data)
source

edn-resources-bindingsclj

(edn-resources-bindings resources-dir)
source

export-jsonclj

(export-json export-dir export-file-without-extension client-id path secrets)
source

export-secret-in-files!clj

(export-secret-in-files! keycloak-client
                         realm-name
                         client-id
                         {:keys [name-without-extension export-dir path]
                          :as secret-file})
source

export-secret-in-vault!cljmultimethod

take the vendor value to dispatch the call to proper function, other value are specific to vault implementation:

  • :hashicorp: in infra-context, [:vault :path] is a string with placeholders as: %1$s is the environment, %2$s is the color, %3$s is the base-domains, %4$s is the client-id (client-id depends of your realm-config.clj code)
  • :gcp-sm: the vault entry of infra-contect must contains project-id and secret-id, also the GOOGLE_APPLICATION_CREDENTIALS must be properly defined and available at runtime
take the vendor value to dispatch the call to proper function, other value are specific to vault implementation:
- `:hashicorp`: in infra-context, [:vault :path] is a string with placeholders as: %1$s is the environment, %2$s is the color, %3$s is the base-domains, %4$s is the client-id (client-id depends of your realm-config.clj code)
- `:gcp-sm`: the vault entry of infra-contect must contains project-id and secret-id, also the GOOGLE_APPLICATION_CREDENTIALS must be properly defined and available at runtime 
sourceraw docstring

export-yamlclj

(export-yaml export-dir export-file-without-extension client-id path secrets)
source

generate-userclj

(generate-user username-creator-fn role group subgroup idx & opts)
source

init!clj

(init! admin-client data)
(init! admin-client data infra-context)

Create a structure of keycloak objects (realm, clients, roles) and fill it with groups and users

Create a structure of keycloak objects (realm, clients, roles) and fill it with groups and users
sourceraw docstring

init-cli!clj

(init-cli! args)
source

init-cli-optsclj

source

init-clients!clj

(init-clients! admin-client realm-name clients-data infra-context)
source

init-generated-users!clj

(init-generated-users! admin-client realm-name data group subgroup)
source

init-groups-and-gen-users!clj

(init-groups-and-gen-users! admin-client realm-name {:keys [groups] :as data})
source

init-realm!clj

(init-realm! admin-client
             {:keys [name themes login tokens smtp user-admin] :as realm-data})
source

init-roles!clj

(init-roles! admin-client realm-name roles-data)
source

init-users!clj

(init-users! admin-client realm-name users-data)
source

keycloak-auth-server-urlclj

(keycloak-auth-server-url protocol host port)
source

process-argsclj

(process-args {:keys [realm-config infra-context] :as args})
source

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

× close