This project is a Java Web Application (WAR) that serves as an administration interface using servlets and JSP for user management through the Keycloak API. It provides functionalities to list, create, update, and delete users and view clients in the Keycloak repository via REST APIs.
- Prerequisites && instalation & download
- Keycloak setup & project configuration
- Usage
- Endpoints
Ensure you have the following prerequisites installed:
- Java Development Kit (JDK) (java 17 preferable)
- Apache Tomcat (Tomcat 8.0)
- Keycloak Installation Download Keycloak
After completing the installation steps, follow these instructions to set up Keycloak for use with the project.
-
Open your web browser and go to the Keycloak Admin Console. The default URL is http://localhost:8080.
-
Log in with your administrator credentials.
-
In the Admin Console, create a new realm:
-
Create a new client:
-
Configure the client settings:
-
Assign roles to the client:
-
Update project configurations:
-
Save the changes and rebuild the project.
In this project we use java servlets and we take the users that is in the realm we can add or delete or update user
run keycloak server (in this example we have keycloak 2020) change the posrt of tomcat which default is 8080 as the quarkus default that keycloak is running
and run the project.If you have problem with the starting page try to declare in the path from assembly the webapp folder (eclipse)