2023-08-17 22:33:59 +00:00
|
|
|
# keycloak-reg-api
|
2023-08-15 04:22:02 +00:00
|
|
|
|
2023-08-17 22:33:59 +00:00
|
|
|
Simple API for self-registration of Keycloak accounts that use API keys.
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
### Local
|
|
|
|
|
|
|
|
```
|
|
|
|
$ yarn install
|
|
|
|
$ export CERC_KCUSERREG_API_URL=http://keycloak:8080/auth
|
|
|
|
$ export CERC_KCUSERREG_REG_PW=MySecretKeycloakApiPassword
|
|
|
|
$ yarn dev
|
|
|
|
```
|
|
|
|
|
|
|
|
### Docker
|
|
|
|
|
|
|
|
```
|
|
|
|
$ docker build -t cerc/keycloak-reg-api:local .
|
|
|
|
$ docker run \
|
|
|
|
-e CERC_KCUSERREG_API_URL=http://keycloak:8080/auth \
|
|
|
|
-e CERC_KCUSERREG_REG_PW=MySecretKeycloakApiPassword \
|
|
|
|
-p 9292 cerc/keycloak-reg-api:local
|
|
|
|
```
|