Add new script and some docs

This commit is contained in:
decentral1se
2021-06-18 09:03:54 +02:00
parent 7a3af5bc96
commit ab248fb9c3
4 changed files with 96 additions and 1 deletions

View File

@ -1,3 +1,25 @@
# 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.