Experimental keycloak automation
Go to file
decentral1se c12ee79458
Enable a more safe mode of creation
2021-08-12 12:15:47 +02:00
.gitignore Add new script and some docs 2021-06-18 09:03:54 +02:00
README.md Add new script and some docs 2021-06-18 09:03:54 +02:00
add-users-keycloak-api.py Enable a more safe mode of creation 2021-08-12 12:15:47 +02:00
add-users-keycloak.py Add new script and some docs 2021-06-18 09:03:54 +02:00
test-stream.sh Add test script 2021-05-10 14:29:52 +02:00

README.md

toolshed

Bits and bobs.

add-users-keycloak.py

DEPRECATED: user

Attempt to create users using the local command-line client.

add-users-keycloak-api.py

Create users using the REST API.

$ export KEYCLOAK_DOMAIN=login.lumbung.space
$ export KEYCLOAK_REALM=lumbung-space
$ export KEYCLOAK_CLIENT_SECRET=foobar
$ python3 -m venv .venv && source .venv/bin/activate
$ pip install -r requirements.txt
$ cat mycoolemail@foobar.com > accounts.txt  # the data source
$ ./add-users-keycloak-api.py

accounts.txt just needs an email on each new line.