This project is a simple example of how to consume the Keycloak Admin API using Spring Boot.
- Java 21
- Gradle
- Keycloak Server
- Keycloak Admin API Client
- Clone the project
- Run the Keycloak Server
- Create a new client in the Keycloak Admin Console
- Or else you can simply import the client file stored under src/main/resources/keycloak-client-export
- Update the
application.properties
file with the client credentials
- Run the project
For this test application I've only enabled following roles for this client. Feel free to enable any other roles as per your requirement.