Quick and easy integration of Keycloak with Spring Boot 3

What you will learn

What Keycloak is?

Install and configure Keycloak

Create a Spring Boot App from scratch

Integrate Keycloak with a Spring Boot App

Description

This course presents a quick and easy way to integrate Keycloak with Spring Boot 3. After completing this course, you will be able to:

  • download, install and configure Keycloak
  • create a Spring Boot 3 App from scratch
  • integrate Keycloak with Spring Boot 3

Bear in mind that this course presents a simple way to get started and it doesn’t represent a supreme example. All the configurations and code parts serve as a simple example that will help you understand the general idea of Authentication and Authorization through Keycloak.

The course presents important parts when it comes to configuration and integration of Keycloak with Spring Boot 3. At code level, I talk in more detail only about very important parts that may be hard to understand at first. The Java code is available to you for free, as I shared my public repository that contains everything that I present to you.


Get Instant Notification of New Courses on our Telegram channel.


IMPORTANT! There are many things that can be improved. When it comes to securing a Spring Boot App there are many mechanisms that happen behind the scenes. In order to use them in your favor it’s good for you to be aware of them and to also understand them. I do not talk about these mechanisms in this tutorial.

I hope from the bottom of my heart that this course will help you!

English
language

Content

Introduction

Course introduction
Important note!
Course Summary

Keycloak

Introduction to: Keycloak, IAM (Identity Acess Management), Open-Source IAM
Keycloak Official documentation

Install and configure Keycloak

Important prerequisites
Download, start and login in Keycloak
Create a new realm
Create a new client
Create new roles
Create two users, set the users passwords, assign roles the users

Create a Spring Boot App from scratch

Important prerequisites
Create a Spring Boot App by using Spring Initializr

Integrate Keycloak with a Spring Boot App

Important prerequisites
Login simulation – Generate Access Token via Postman
Code part – Keycloak configurations + security configurations
Code part – Verify Authentication and Authorization

Course recap

Course recap
Thank you for your time!
Useful links