A common repository for Keycloak and Spring Boot article series
- Base integration:
- Base integration with Spring Boot 3:
If you only want to use preconfigured Keycloak instance just run the run-keycloak.sh script.
It will run the Keycloak docker image with the configuration described in the article.
Keycloak realm configuration is present in realm/realm.json file.
All additional configuration and customization can be done from there.
To set up this environment locally just run the deploy.sh script in one of the project directories. It will compile the application and prepare a runnable jar. Then script will run the jar alongside Keycloak docker.
Directory http contains a set of requests in the form of base.http file for IntelliJ build-in HTTP client.
Requests:
- GET http://localhost:8080/hello
- POST http://localhost:8090/realms/demo/protocol/openid-connect/token
The request allow for manual testing of the running application.
Only after calling the token
request the hello
request will return the 200
HTTP code.
The first call of a hello
request should return a 401
HTTP code.