Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasdarimont/keycloak-user-storage-provider-demo
Simple custom User Storage Provider extension for Keycloak. Deployed as .ear with dependencies & jboss-cli based setup.
https://github.com/thomasdarimont/keycloak-user-storage-provider-demo
Last synced: 4 days ago
JSON representation
Simple custom User Storage Provider extension for Keycloak. Deployed as .ear with dependencies & jboss-cli based setup.
- Host: GitHub
- URL: https://github.com/thomasdarimont/keycloak-user-storage-provider-demo
- Owner: thomasdarimont
- License: apache-2.0
- Created: 2017-09-05T15:33:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T10:51:10.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:34:09.484Z (3 months ago)
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 93
- Watchers: 9
- Forks: 39
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - thomasdarimont/keycloak-user-storage-provider-demo - Simple custom User Storage Provider extension for Keycloak. Deployed as .ear with dependencies & jboss-cli based setup. (Java)
README
# A custom Keycloak User Storage Provider
This example demonstrates how to deploy custom Keycloak User storage provider as an `.ear`.
This allows to use custom dependencies that are not part of the keycloak module space.The storage provider is implemented in the `jar-module` project.
This example is based on [keycloak-user-spi-demo](https://github.com/dasniko/keycloak-user-spi-demo) by [@dasniko](https://github.com/dasniko).
## Prepare
KEYCLOAK_HOME=/home/tom/dev/playground/keycloak/keycloak-3.3.0.CR1## Build
Build the ear archivemvn clean install
## Prepare Keycloak
Run [setup.cli](./setup.cli) withecho "yes" | $KEYCLOAK_HOME/bin/jboss-cli.sh --file=$KEYCLOAK_HOME/setup.cli
This configures the custom logger and registers the static configuration
of the user federation provider.## Start Keycloak
cd $KEYCLOAK_HOME
bin/standalone.sh -c standalone-ha.xml## Deployment
Deploy `.ear` to wildflymvn wildfly:deploy -Djboss-as.home=$KEYCLOAK_HOME
This copies the `.ear` file to `standalone/deployments` folder.