keycloak-scim/examples/providers/user-storage-jpa
2016-10-26 15:48:45 -04:00
..
src/main REST API for disable cred type 2016-10-26 15:48:45 -04:00
pom.xml Bump version 2016-10-21 07:03:15 +02:00
README.md jta transaction abstraction 2016-08-08 12:32:36 -04:00

Example User Storage Provider with EJB and JPA

This is an example of the User Storage SPI implemented using EJB and JPA. To deploy this provider you must have Keycloak running in standalone or standalone-ha mode. Then type the follow maven command:

mvn clean install wildfly:deploy

Login and go to the User Federation tab and you should now see your deployed provider in the add-provider list box. Add the provider, save it, then any new user you create will be stored and in the custom store you implemented. You can modify the example and hot deploy it using the above maven command again.

This example uses the built in in-memory datasource that comes with keycloak: ExampleDS.