How To Integrate Keycloak With Spring Cloud Gateway - Part 1

Опубликовано: 04 Май 2026
на канале: Refactor First
16,891
305

In this video we will be looking at how we integrate Keycloak with Spring Cloud Gateway Application.
We will be using OAuth2 OpenId Connect (OIDC) mechanism to authenticate the user.

In my next video I will be integrating a resource server. So make sure to subscribe to my channel.

You can also read about this along with the GitHub link to the code: https://refactorfirst.com/spring-clou...

You can support me by buying me a coffee 😄 : https://www.buymeacoffee.com/amrutprabhu

Gear I use:
Sony Alpha a6000 : Amazon India : https://amzn.to/3RM7QMJ
Germany : https://amzn.to/3G1Iw24
US : https://amzn.to/3cpKZ9E
UK : https://amzn.to/3J0g5Ry

Razer Microphone : Amazon India : https://amzn.to/3aQxI9C
Germany : https://amzn.to/3DRRrAh
US : https://amzn.to/3ITKu3Q
UK : https://amzn.to/3v3RHbU



--- Chapters --------

00:00 - Introduction
00:32 - Keycloak Docker Compose
01:34 - Starting Keycloak
02:09 - Creating Realm
03:27 - Creating Client Configuration
05:27 - Creating User
06:50 - Keycloak Config Summary
07:19 - Creating Spring Boot Application
08:55 - Spring Cloud Gateway Code
09:14 - Security Configuration
10:00 - Keycloak Properties
14:20 - Controller Protected Endpoint
16:00 - Starting Application
16:50 - Error
17:25 - Successful Login
17:41 - Understanding Output
18:50 - What's Next


Music Credits:-

Sappheiros - Affection
----------------------------
Social Media
YouTube    / sappheiros  
Spotify goo.gl/hE9MDJ
Twitter twitter.com/SappheirosMusic
Instagram instagram.com/sappheirosmusic
Facebook facebook.com/SappheirosMusic
Discord discord.gg/Pk87yN9
  / affection  
--------------------------------------------------