Skip to content

Spring Boot 3, Spring Security, and Keycloak integration

Notifications You must be signed in to change notification settings

edwin/spring-3-keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot 3, Spring Security, and Keycloak

Purpose

A sample java code to demonstrate a Spring Boot 3 integration with Keycloak 17. It utilize Keycloak login page, and fetch a user's attribute based on Keycloak user profile.

Version

  • Spring Boot 3.0.4
  • Keycloak 17
  • Red Hat OpenJDK 17

Screenshots

Keycloak User Profile

User Profile

JSON Response reading Keycloak Profile

JSON

Blog Post

Explanation of this code can be seen on below Red Hat Developer article,

https://developers.redhat.com/articles/2023/07/24/how-integrate-spring-boot-3-spring-security-and-keycloak

Disclaimer

This code is provided "as is" without any guarantee whatsoever. 
Feel free to fork, add, remove, change, or do whatever you want with it. 

About

Spring Boot 3, Spring Security, and Keycloak integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages