Skip to content

chihebelgouthi/keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ Keycloak + Spring Boot Tutorial

A simple and elegant tutorial to learn how to integrate Keycloak (Open Source Identity and Access Management) with a Spring Boot application using Docker.

๐Ÿ“š Overview

This project demonstrates:

  • Setting up a Keycloak server using Docker
  • Creating and configuring a Realm, Users, and Roles
  • Integrating Spring Boot with Keycloak
  • Implementing a custom JWT Converter to prefix Keycloak roles with ROLE_ for Spring Security compatibility

โš™๏ธ Stack

  • ๐Ÿณ Docker
  • โ˜• Spring Boot
  • ๐Ÿ›ก๏ธ Keycloak
  • ๐Ÿ” Spring Security
  • ๐Ÿ’ฌ JWT (JSON Web Token)

๐Ÿš€ Getting Started

1. Start Keycloak with Docker

docker run -p 127.0.0.1:8080:8080 -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:26.3.1 start-dev

About

Tutorial how to use keycloak and spring security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages