Spring boot 3 Keycloak integration for beginners | The complete Guide

preview_player
Показать описание

Unlock the power of secure applications with this in-depth tutorial on integrating Keycloak, a robust open-source Identity and Access Management solution, with Spring Boot, one of the industry's leading Java application frameworks.

🎁 🚀 COUPON Code: EARLYBIRD20

Don't Forget to
===========================================
💯 Subscribe to the youtube channel

Whether you're building enterprise-grade applications or developing personal projects, effective identity and access management is critical. Keycloak, with its comprehensive set of features like Single Sign-On (SSO), Identity Brokering, User Federation, and Fine-Grained Authorization Services, provides a solid foundation for securing your applications.

Boost your Spring Boot applications' security to the next level by mastering Keycloak integration. This tutorial is perfect for developers of all levels eager to enhance their understanding of application security.

Make sure to hit the 'Subscribe' button for more tutorials and guides on Java, Spring Boot, Keycloak, and more. If you have any questions, please leave a comment below; we'd love to hear from you!

Table of Content:
00:00 Introduction
01:07 Course curriculum
02:35 Keycloak feature
06:05 Keycloak advantages
07:59 Keycloak terms
11:24 Exploring the documentation
14:37 Intall Keycloak
16:56 Exploring & Playing with Keycloak
33:56 Create new Spring boot project
34:52 Create a demo controller
36:09 Add security configuration
39:04 Add OAuth2 configuration
42:02 Test the chnages
44:28 Add roles support
49:26 JWT token converter
01:09:44 Test and debug
01:12:50 Outro
Рекомендации по теме
Комментарии
Автор

Join the Micro Services course waiting list and get and get an exclusive EARLY-BIRD discount

BoualiAli
Автор

Those following this video, pls disable all the required actions in Configure -> Authentication -> Required actions tab. Applicable for keycloak 24.0.5.

ershadahamed
Автор

For those who get this in postman (minute 30:34)
{
"error": "invalid_grant",
"error_description": "Account is not fully set up"
}

What worked for me was: setting the email, firstname and lastname for the user.

jgxyywj
Автор

Dear alibou,

I wanted to take a moment to say thank you for your amazing tutorial video on YouTube about Keycloak and its implementation in Spring Boot. Your video was incredibly helpful and easy to understand.

I really appreciate how you explained the concepts of Keycloak and showed how it can be integrated with Spring Boot. Your explanations were clear and straightforward, making it easy for me to follow along.

If possible, it would be great if you could create a video tutorial specifically focusing on the authentication flow. This would greatly enhance our understanding of the topic.


Additionally, I would love to see a video tutorial on debugging in IntelliJ IDEA. As a beginner developer, learning effective debugging techniques is crucial, and I believe your guidance would be highly beneficial.

Thank you once again for creating such valuable educational content. Your videos have significantly improved my understanding of Keycloak and Spring Boot, and I eagerly look forward to watching more of your tutorials in the future.

Best regards,
ArefSa

arefsa
Автор

Finally a tutorial that explains very well how keycloak works and its integration with springboot, thank you 🙏🏾

elpanthouro
Автор

I'm a Java fresher, and this time I want to work on a personal project involving Spring Security combined with JWT and OAuth2. I have watched many of your tutorial videos, and I must say they have been extremely helpful to me. Thank you for all the knowledge you have provided.

vuongo
Автор

Thank you. I'm watching the second video on security in Spring boot on your channel and I'm absolutely delighted! No one has explained better yet.

avialovers
Автор

I finally watched a video that really helped me! Thank you for that! I would like to know how to make it possible to use Keycloak in both the back-end (Java + Spring) and the front-end with React.👏👏👏👏

AdamKnebel
Автор

With quarkus you don't need to write this bunch of classes and settings, just use a single @ROLES notation. Spring still has a lot to evolve compared to other frameworks. Actually what saved Spring was the Graal VM

reinaldojesus
Автор

Thanks, bro. This is probably the best video on the subject that I've come across recently. You're good at explaining things. I'd like to see another video on how to perform user registration through REST API and Keycloak.

PS and, yeah, it would be great to watch a good video about OAuth and Spring Security REST API. I know you had something similar, but without the REST API."

spalabutyi
Автор

Thank you for the video. Your english is really understandable

enricomontesi
Автор

One interesting tutorial would be one for interacting with keycloak using it's API's. For example creating users, updating passwords etc...

traian
Автор

I was going through a Udemy course, and the Keycloak screens there were too old, the new version of UI is very different. Thankfully I landed on this video. It helped me a lot. Thanks.

rahulvaish
Автор

Thanks for such great tutorial. It helps a lot to get basic understanding of keycloak

faixan
Автор

안녕하세요
알기 쉽고 꼼꼼하게 설명해주셔서 너무 감사합니다ㅜㅠ
구독 할게요!

digpgbw
Автор

Great video, it's really helpful that developers like you are putting hardcore efforts to share their knowledge.

vshlmlvliveit
Автор

The best spring boot teacher (Bouali Ali). I want to new video for Java Concurrency & Multithreading Complete Course

alaminrony
Автор

Thank you very much for this video. I was searching for a good tutorial for a long time, but most tutorials just throw some random code and config in your face, without any explanation. Mostly this does not really work and you have got no change to understand what you are doing and what is going wrong.
This one is very different and I got a better understanding what is happening and I have got the feeling to start over by myself.

MortlMcCrisis
Автор

a lot of libraries were deprecated so it was difficult changing from sb2 to 3 but your tutorial helped a lot, thanks

koi
Автор

Awaited one from you, thanks man, keep rocking 🎉❤❤

vageeshanvageesh