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 Keycloak With Spring...
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: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
YouTube / sappheiros
Spotify goo.gl/hE9MDJ
Twitter twitter.com/SappheirosMusic
Instagram instagram.com/sappheirosmusic
Facebook facebook.com/SappheirosMusic
Discord discord.gg/Pk87yN9
/ awake
--------------------------------------------------