I'll be adding a docker-compose to automate everything around here, but so far, none exist. Please execute the following steps to get your Keycloak instance running prior to the execution of ./gradlew bootRun
:
- Execute:
docker run -p 8080:8080 -e KEYCLOAK_USER=<USERNAME> -e KEYCLOAK_PASSWORD=<PASSWORD> jboss/keycloak
- Open
http://localhost:8080
- Configure a realm called
sample-app
- Create a user
- Do not forget to set a password
- Configure a role called
users
- Associate the created user to the
users
role - Configure a client called
spring-app
- Add
http://localhost:8081/*
as value for the field Valid Redirect URIs
- Add
- Securing apps and services with Keycloak authentication | DevNation Live
- What is Keycloak and what are the main features | DevNation Live
- A Quick Guide to Using Keycloak with Spring Boot
- Easily secure your Spring Boot applications with Keycloak - Part 1
- Easily secure your Spring Boot applications with Keycloak - Part 2
- Easily secure and add Identity Management to your Spring Boot applications by Sebastien Blanc
- How to secure your Spring Apps with Keycloak by Thomas Darimont @ Spring I/O 2018
- How to secure your Spring apps with Keycloak by Thomas Darimont @ Spring I/O 2019