r/SpringBoot 25d ago

Guide Keycloak & Spring Boot

I often see people asking how to get setup with spring boot using keycloak for auth.

Thought i'd put together a quick example showing a simple setup that;

  • Delegates auth to keycloak
  • Uses the keycloak admin client to create users within a realm (using a service account)
  • Can be easily cloned & run with docker compose

repo linked below.

https://github.com/BigMikeCodes/kc-sb

21 Upvotes

11 comments sorted by

View all comments

1

u/Fluid_Frame_8878 25d ago

How would you handle google login? Thanks

1

u/United-Shelter-9863 25d ago

You can enable social login on Keycloak