In this video we will be looking at how we integrate a resource server with Spring Cloud Gateway Application.
We will be using OAuth2 OpenId Connect (OIDC) mechanism to authenticate the user with Keycloak and then check for role based access (RBAC) in the resource server.
Spring cloud Gateway Integration with Keycloak : • How To Integrate Keycl...
You can also read about this along with the GitHub link to the code: refactorfirst.com/spring-clou...
You can support me by buying me a coffee 😄 : www.buymeacoffee.com/amrutprabhu
Gear I use:
Sony Alpha a6000 : Amazon India : amzn.to/3RM7QMJ
Germany : amzn.to/3G1Iw24
US : amzn.to/3cpKZ9E
UK : amzn.to/3J0g5Ry
Razer Microphone : Amazon India : amzn.to/3aQxI9C
Germany : amzn.to/3DRRrAh
US : amzn.to/3ITKu3Q
UK : amzn.to/3v3RHbU
--- Chapters --------
00:00 - Introduction
00:46 - Keycloak Role Assignment
02:25 - Creating Resource Server
03:05 - Code Walkthrough
03:25 - Resource Server Configuration
03:57 - Setting Properties
04:45 - Controller Code
05:27 - API Gateway Path
06:35 - Starting Application
07:14 - Debugging Controller
07:31 - Decoding Token
08:35 - Understanding Realm Role Converter
09:30 - Allowed Role Annotation
10:07 - Flow Summary
10:25 - Understanding OAuth2
12:15 - Conclusion & Article
Music Credits:-
Sappheiros - Awake
----------------------------
Social Media
RU-vid / sappheiros
Spotify goo.gl/hE9MDJ
Twitter SappheirosMusic
Instagram sappheirosmusic
Facebook SappheirosMusic
Discord discord.gg/Pk87yN9
/ awake
--------------------------------------------------
3 авг 2024