PoC of Keycloak and Spring boot

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:

  1. Execute: docker run -p 8080:8080 -e KEYCLOAK_USER=<USERNAME> -e KEYCLOAK_PASSWORD=<PASSWORD> jboss/keycloak
  2. Open http://localhost:8080
  3. Configure a realm called sample-app
  4. Create a user
    1. Do not forget to set a password
  5. Configure a role called users
  6. Associate the created user to the users role
  7. Configure a client called spring-app
    1. Add http://localhost:8081/* as value for the field Valid Redirect URIs

References

Keycloak overview:

Spring Boot applications with Keycloak: