This project aims to make a use of keycloak which is an open source identity and access management solution for modern applications and services. Here we secure a service of customers using keycloak solution.
-
Keycloak
- Install keycloak server and start it in development mode
- Follow this link Get started with keycloak to set up a realm, create users, and register a client with id
keycloak-sec-client
- Make sure configuration is ok by logging in using created user's credentials
-
Project
- Get the project
git clone https://github.com/Tountoun/keycloak-sec.git
- Build the project
cd keycloak-sec mvn clean install
- Update the following properties by the name of the realm you created
spring: security: oauth2: resourceserver: jwt: issuer-uri: https://localhost:8080/realms/<your-realm> jwt-set-uri: https://localhost:8080/realms/<your_realm>/protocol/openid-connect/certs authorization: url: https://localhost:8080/realms/<your_realm>/protocol/openid-connect/token
- Run the application in IntelliJ
- Get the project
- Feel free to join me at [email protected]