Skip to content

Commit

Permalink
Update keycloak version. Merge realm and users create config.
Browse files Browse the repository at this point in the history
  • Loading branch information
czetsuya committed Jun 13, 2020
1 parent 65155a2 commit 6e0a743
Show file tree
Hide file tree
Showing 5 changed files with 2,473 additions and 1,652 deletions.
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,37 @@ standalone.bat -Djboss.socket.binding.port-offset=1 -Dkeycloak.profile.feature.u

Here's the documentation: https://www.keycloak.org/docs/latest/server_installation/, look at the profiles section.

## Note:
## Running Keycloak in Docker

- Make sure that you have the same Keycloak client credentials value for the 2 project ands Keycloak server.
To run Keycloak as a docker container and enable the realm configuration upload, the keycloak.profile.feature.upload_scripts must be set.

If keycloak.json file is to be used instead of application.yml, set the following system variable and make sure that you have the file keycloak.json in src/main/resources.
```sh
docker run -d -p 8080:8080 -e JAVA_OPTS="-Dkeycloak.profile.feature.scripts=enabled -Dkeycloak.profile.feature.upload_scripts=enabled" -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=kerri jboss/keycloak
```

keycloak.configurationFile = classpath:keycloak.json
## Running Keycloak as Standalone

Import the realm file inside the config folder. If you're not familiar with the installation process, visit the blog I have written in the reference section below.

## Users
When you import the realm it will also create the users below.

### Users

Role=User, kerri / kerri
Role=Admin, admin / admin


## Note:

- Make sure that you have the same Keycloak client credentials value for the 2 project ands Keycloak server.

If keycloak.json file is to be used instead of application.yml, set the following system variable and make sure that you have the file keycloak.json in src/main/resources.

keycloak.configurationFile = classpath:keycloak.json

## References

- https://czetsuya-tech.blogspot.com/2020/02/download-and-configure-keycloak-sso-server.html
- https://github.com/springdoc/springdoc-openapi-maven-plugin

## Authors
Expand Down
85 changes: 0 additions & 85 deletions config/dev-users-0.json

This file was deleted.

Loading

0 comments on commit 6e0a743

Please sign in to comment.