Spring boot 3 Keycloak integration for beginners | The complete Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025

ความคิดเห็น • 398

  • @BoualiAli
    @BoualiAli  ปีที่แล้ว +5

    Join the Micro Services course waiting list and get and get an exclusive EARLY-BIRD discount
    aliboucoding.ck.page/d0f9317e13

  • @especializacionIngenieriaSoftw
    @especializacionIngenieriaSoftw 10 หลายเดือนก่อน +40

    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.

  • @arefsa6
    @arefsa6 ปีที่แล้ว +16

    Dear alibou,
    I wanted to take a moment to say thank you for your amazing tutorial video on TH-cam 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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      I really appreciate this comment.

  • @elpanthouro6002
    @elpanthouro6002 ปีที่แล้ว +6

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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad you liked it!

  • @pacalexandrecosta
    @pacalexandrecosta 5 หลายเดือนก่อน

    Dear Alibou, I want to express my gratitude for you taking time to create a so detailed and rich explanation on how to integrate KeyCloak in Java Spring Boot.
    Many thanks!

    • @BoualiAli
      @BoualiAli  4 หลายเดือนก่อน

      Glad it was helpful!

  • @vuongo9949
    @vuongo9949 ปีที่แล้ว +10

    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.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it

  • @em_coding
    @em_coding 7 วันที่ผ่านมา

    Thanks for this one, yes we really need a debugging course.

  • @doskeko
    @doskeko 28 วันที่ผ่านมา

    Excelent job bro, you help me a lot. A tip if you do not want to fill all the information about the user you should disable some stuffs on configuration.

  • @zahirulislam2097
    @zahirulislam2097 3 หลายเดือนก่อน

    Very helpful. I was able to follow along except "invalid_grant" error which I saw later in the comment section. Thank you very much.

  • @avialovers2508
    @avialovers2508 ปีที่แล้ว +2

    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.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      I’m super happy to know that. Happy to have you here

  • @spalabutyi
    @spalabutyi ปีที่แล้ว +1

    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."

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad you enjoyed it!
      I will provide such content ASAP

  • @AdamKnebel
    @AdamKnebel ปีที่แล้ว +1

    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.👏👏👏👏

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it!
      I’m working on it

  • @enricomontesi6281
    @enricomontesi6281 10 หลายเดือนก่อน +1

    Thank you for the video. Your english is really understandable

    • @BoualiAli
      @BoualiAli  9 หลายเดือนก่อน +1

      You're welcome 😊

  • @PeterNirschl
    @PeterNirschl ปีที่แล้ว

    Danke!

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      I really appreciate that ❤️❤️

  • @mouradeljayi584
    @mouradeljayi584 ปีที่แล้ว +10

    The best spring boot teacher

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it

    • @SirCryALot2609
      @SirCryALot2609 ปีที่แล้ว

      @@BoualiAlii agreed with him

  • @divyanshsaini1077
    @divyanshsaini1077 ปีที่แล้ว +3

    at 30:45 if any one facing the following error
    ``` {
    "error": "unauthorized_client",
    "error_description": "Invalid client or Invalid client credentials"
    }
    ```
    also include client_secret as a parameter, the value can be find in your realm -> clients -> credentials -> Client Secret.

  • @MortlMcCrisis
    @MortlMcCrisis ปีที่แล้ว

    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.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Great to hear!

  • @reinaldojesus4002
    @reinaldojesus4002 ปีที่แล้ว +3

    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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +6

      Spring is always 3 years (at least) ahead of the rest of the frameworks.
      For quarkus, I need to try it and the we can discuss

    • @amitkriit
      @amitkriit 11 หลายเดือนก่อน +2

      Spring is more mature and better documented.

    • @sadiulhakim7814
      @sadiulhakim7814 8 หลายเดือนก่อน

      I would still go with spring because my company uses it.

  • @farhadahmad2292
    @farhadahmad2292 5 หลายเดือนก่อน

    This is great video. U have explained everything very well.

    • @BoualiAli
      @BoualiAli  4 หลายเดือนก่อน

      Glad you liked it

  • @faixan13
    @faixan13 ปีที่แล้ว

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

  • @alaminrony6881
    @alaminrony6881 ปีที่แล้ว

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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it
      I will schedule such a video

  • @noelauras_nmr
    @noelauras_nmr ปีที่แล้ว +1

    Amazing video, perfectly explained, very educational.
    Thank you so much for this! (a video on debug mode on IntelliJ would be great).

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Great suggestion!

  • @fkbey5756
    @fkbey5756 ปีที่แล้ว

    thanks for providing github repo.. it works like a charm

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it!

  • @vageeshanvageesh5583
    @vageeshanvageesh5583 ปีที่แล้ว

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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it

  • @traian118
    @traian118 ปีที่แล้ว +2

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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      I will cover this part in a separate video

    • @traian118
      @traian118 ปีที่แล้ว

      @@BoualiAli this sounds great. Can’t wait to see that video 🙂

  • @sm2irfan
    @sm2irfan ปีที่แล้ว

    Thanks a lot for your video, it is easy to understand the concept through your video

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad to hear that

  • @paulmoustakas6422
    @paulmoustakas6422 ปีที่แล้ว

    Really appreciate your video, amazing tutorial. Thank you!

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad you enjoyed it!

  • @prabhatkeshari2976
    @prabhatkeshari2976 5 หลายเดือนก่อน

    Thanks sir for the nice explanation video on Keyclaok it was really helpful for me.

  • @saikumardasari4220
    @saikumardasari4220 ปีที่แล้ว

    Very nice explanation
    We need custom temple with keycloak for login and try to use front end as a react and back end is an springboot
    Note: When we are hitting front end that should be redirect to keycloak login custom template if user validated then we need to redirect to springboot and Response send to front end
    Thanks in advance

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it!
      I will cover more topics soon

    • @saikumardasari4220
      @saikumardasari4220 ปีที่แล้ว

      Thanks @@BoualiAli

  • @koi682
    @koi682 ปีที่แล้ว

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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it!

  • @faakhy2954
    @faakhy2954 ปีที่แล้ว

    Thank you very much for this guide. The JWT Authentication converter is really tough but well explained! I'm looking for now to replicate / save keycloak users into my database.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Why do you need to do that?

    • @remylavergne6424
      @remylavergne6424 ปีที่แล้ว

      @@BoualiAli Because I have some relations between entities like "UUID carOwner" into CarEntity (eg). And I add some business informations to my logged user. Do you think it's a bad practice?

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      @@remylavergne6424 just save the user id from keycloak

  • @ChinhNguyen-eg5km
    @ChinhNguyen-eg5km ปีที่แล้ว +1

    please make more video about keycloak, tks for your helpful video

  • @juanpolo4617
    @juanpolo4617 ปีที่แล้ว

    Thanks a lot. your video is fantastic, everything was self-explanatory

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Glad you liked it

  • @zakask6268
    @zakask6268 ปีที่แล้ว

    thank you Ali for this amazing tutorial

  • @YGaming18
    @YGaming18 ปีที่แล้ว

    mr and so and so forth thank you

  • @BoualiAli
    @BoualiAli  ปีที่แล้ว

    COUPON Code: *EARLYBIRD20* => Spring Data J PA course: aliboucoding.com/p/the-full-guide-to-master-spring-boot-data-jpa

  • @arohawrami8132
    @arohawrami8132 ปีที่แล้ว

    Thanks a lot Ali. It was a great tutorial as usual.👏

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it

  • @khalilbouali3480
    @khalilbouali3480 ปีที่แล้ว

    thanks a lot Ali! This was very informative !

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad it was helpful!

  • @dunayqudretli3382
    @dunayqudretli3382 11 หลายเดือนก่อน +2

    Great tutorial👏

    • @BoualiAli
      @BoualiAli  9 หลายเดือนก่อน

      Glad you think so!

  • @avishjain93
    @avishjain93 8 หลายเดือนก่อน

    Great Video. It really helped me while migrating things over. There are some upgrades missing in your github. Let me know if I can contribute anything and make it complient as per latest spring boot version.

  • @duongphuba7216
    @duongphuba7216 ปีที่แล้ว

    Thank you so much!! Your video is really helpful!!

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad it was helpful!

    • @duongphuba7216
      @duongphuba7216 ปีที่แล้ว

      @@BoualiAli Merci beaucoup! ;)

  • @Cherupakstmt
    @Cherupakstmt ปีที่แล้ว +1

    Nice video. But can you please make a video on how to log out user and change the session time using keycloak & spring security

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it
      I will create another video more detailed

    • @Cherupakstmt
      @Cherupakstmt ปีที่แล้ว

      @@BoualiAli Thanks. Eagerly waiting for it.

  • @janrubach3726
    @janrubach3726 11 หลายเดือนก่อน

    Great tutorial :D Thank You :D

  • @user-di3gp7gb3w
    @user-di3gp7gb3w ปีที่แล้ว

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

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it!

  • @viniciusgallico5553
    @viniciusgallico5553 11 หลายเดือนก่อน

    excellent video, thank you for sharing!

    • @BoualiAli
      @BoualiAli  10 หลายเดือนก่อน

      Happy to have you

  • @ershadahamed8928
    @ershadahamed8928 8 หลายเดือนก่อน +13

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

    • @edouardo_afangnon1783
      @edouardo_afangnon1783 7 หลายเดือนก่อน +1

      Thank you!! I got an "invalid_grant" error before disabling them 😂😂

    • @ershadahamed8928
      @ershadahamed8928 7 หลายเดือนก่อน

      @edouardo_afangnon1783 yup was having same error.

    • @imlearninghelppls2544
      @imlearninghelppls2544 7 หลายเดือนก่อน +2

      Life saver! Thanks a lot bro

    • @mitishchitnavis
      @mitishchitnavis 4 หลายเดือนก่อน

      Life saver mate

    • @RahulRaj-wf9tb
      @RahulRaj-wf9tb หลายเดือนก่อน +1

      Thank you bro now working, i have spent whole day due to this😂

  • @vshlmlvliveit
    @vshlmlvliveit ปีที่แล้ว +1

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

  • @raphaellutz2693
    @raphaellutz2693 ปีที่แล้ว

    Nice tutorial, can you please go more into detail with keycloak so something like logout, double registration and so an. Amazing video!

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it!
      I will schedule one soon

  • @rahulvaish3034
    @rahulvaish3034 ปีที่แล้ว

    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.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad it was helpful!

  • @KhurramShahzad_PK
    @KhurramShahzad_PK ปีที่แล้ว

    Thanks a lot for the helpful tutorial. Would be great if you can make a tutorial for KeyCloak integration with LDAP/Active Directory.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Great suggestion!

  • @vm3f
    @vm3f ปีที่แล้ว

    Your explanation was amazing thanks

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it

  • @souravpaul6086
    @souravpaul6086 ปีที่แล้ว +1

    well explained video ❤
    Could you please make a video where we are implementing social login and own jwt authentication in a single spring boot application.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it
      I will make one soon

    • @souravpaul6086
      @souravpaul6086 ปีที่แล้ว

      @@BoualiAli Thank you
      and I also requested you to make a video where linkedin and twitter is act as a social media platform for oauth2 login instead of google and github with spring boot

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      @@souravpaul6086 I’m preparing a video for that

    • @souravpaul6086
      @souravpaul6086 ปีที่แล้ว

      @@BoualiAli I am excited to learn that topic with your awesome explanation ❤️

  • @ElmshornBoy
    @ElmshornBoy 6 หลายเดือนก่อน

    Works like a charme. :-)

  • @thavathrath
    @thavathrath ปีที่แล้ว

    Thank you for the helpfull vdo. Please continue for user federation and store in db.
    Custom User Storage Provider

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Thank you, I will

  • @walterzulu7263
    @walterzulu7263 ปีที่แล้ว

    great tutorial very elaborate and informative.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it

  • @TheAkash58
    @TheAkash58 4 หลายเดือนก่อน

    If anyone using the latest version of keycloak while setting up the user make sure you are providing the firstame, lastname and email as well cause the existing version ends up throwing invalid grant type issue when accessing token endpoint. Also use lombok 1.18.30 when using JDK 21.

  • @issabln759
    @issabln759 2 หลายเดือนก่อน

    Now you did this all in one single spring app. How could i put all these settings into a seperate spring boot project and use it in multiple other spring boot projects to have a real microservice structure?

  • @KrishnaPatel-qu6nh
    @KrishnaPatel-qu6nh ปีที่แล้ว

    thank you for this amazing tutorial.can you please make a video for implementation of multi tenancy with Keycloyk?

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Great suggestion!

  • @ahmedmk534
    @ahmedmk534 ปีที่แล้ว

    thank you for the content. can you demonstrate how to automatically refresh the token once expired without having the user to login again (when microservice1 calls microservice2 for example) ?

  • @gurudattahh3345
    @gurudattahh3345 ปีที่แล้ว +1

    Hey thanks for the tutorial, I am new to this so have a few questions..
    1. Instead of appending Role in code can't we just do it in keycloak itself.
    2. Can we use some kind of pattern matching like antmatcher and assign roles for endpoints instead of using preauthorize on each endpoint?.. it might become repetitive as endpoints increase to double digits.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it!
      1- yes it is possible but you need to configure your spring app to remove the prefix (ROLE_)
      2- yes you can do that, check the roles and permissions video and you will have a clearer picture how to implement it

  • @gmgunesoglu
    @gmgunesoglu 9 หลายเดือนก่อน

    You are perfect bro!

    • @BoualiAli
      @BoualiAli  9 หลายเดือนก่อน

      I appreciate that!

  • @abu-dukhan
    @abu-dukhan ปีที่แล้ว

    Thank you for this awesome content.
    Pls can you make a video for multiple implementation of UserDetaisService, so that the system can use multiple table for authenticating user depending on the Login endpoint. Thank you

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it
      The question that you really need to ask: why you have such system design?
      I guess you need to review you database design and group all the users in one table.
      Please provide more details and I will try to answer and assist you

  • @devozs
    @devozs ปีที่แล้ว +1

    Another great spring tutorial!
    Is it possible to combine this one together with spring social login?
    Thanks!

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +2

      Happy you liked it
      I will provide a video about that too

    • @devozs
      @devozs ปีที่แล้ว

      @@BoualiAli thanks 🙏

  • @DGiant0
    @DGiant0 3 หลายเดือนก่อน

    thanks

  • @DashaZakella1001
    @DashaZakella1001 ปีที่แล้ว

    Thanks my friend for your lessons

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      My pleasure 😇

    • @DashaZakella1001
      @DashaZakella1001 ปีที่แล้ว

      @@BoualiAli what about Spring Rest Data or maybe Spring Cloud?

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      @@DashaZakella1001 what about them?

    • @DashaZakella1001
      @DashaZakella1001 ปีที่แล้ว

      @@BoualiAli can you make a video of them?

  • @leonschm
    @leonschm 10 หลายเดือนก่อน

    Congratulations, I wanted to use Keycloak to help me implement the project, I followed your steps and it's working, very good, now the question I have left is how I can validate the expiration of the jwt token, any ideas.

    • @BoualiAli
      @BoualiAli  10 หลายเดือนก่อน

      Glad it helped

  • @KlevjanPrifti
    @KlevjanPrifti ปีที่แล้ว +1

    I love your videos, this was really helpful to understand keycloak, but i would love to see if its possible to make a controller that gets the user credentials and with those credentials to make the request to the keycloak for the authentication if you have any tip on this it would be helful. Thanks again for the hard work !

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it.
      if you need such functionality, you just need to invoke the same endpoint I used in postman and pass the required body with the correct values and you will get the token

    • @KlevjanPrifti
      @KlevjanPrifti ปีที่แล้ว

      @@BoualiAli I tried that way and managed to make it work now i skipped the "/authentication" url so it can be accessed without Authorization header. And when i make a new request i pass the new token that i got from authentication to the request so Keycloak can make the check if the user is authenticated and has the right role to access the resources.
      Thanks again for help !

  • @legendnic6339
    @legendnic6339 ปีที่แล้ว

    Hi Alibou, may I know if you planning to continue this tutorial, like authorization part and fine grain control on permission and stuff?

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Yes, I have it on my list

    • @legendnic6339
      @legendnic6339 ปีที่แล้ว

      ​@@BoualiAlii want to implement authorization for angular, but of course angular cannot set the authorization. it should be public access. but how to granularly define which path in angular, assosiiate with which permission in keycloak, and how to actually implement this?

  • @aparnan1272
    @aparnan1272 หลายเดือนก่อน

    Can anyone help? Realm role 'admin' is assigned to Client Role 'client-admin'. What difference does it make?⁉

  • @mohamednibras53
    @mohamednibras53 7 หลายเดือนก่อน +2

    Those who received "invalid_grant, Account is not fully set up" error, please mention the user's firstname, lastname, and email even though they are not marked mandatory.

  • @codingstyle9480
    @codingstyle9480 ปีที่แล้ว

    Hi, Thanks for the video. I would like to point out something about the role settings. Perhaps you need to make it a bit clearer that point. It seems we are defining users for the REALM. We can define Roles for a Realm as well. So any user that is defined under a particular realm can be associated with any role that is created within the same realm. For global permissions roles such as ADMIN, USER, MANAGER etc, may be handled by this realm role definition. Probably for fine-grain authorization within a client, we may need extra role definitions under a particular client such as USER(read but not write), ADMIN(data posting, updating etc).

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Sure, I will make that clear in the next video

  • @rusifbudagov246
    @rusifbudagov246 ปีที่แล้ว

    Great tutorial. I would like to ask about Identity Brokering and Provider

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it!
      What about them?

    • @rusifbudagov246
      @rusifbudagov246 ปีที่แล้ว

      Thanks for replying . I need to implement custom Identity brokering in keycloack. Custom oidc. I can not find resources for thst

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      @@rusifbudagov246 will try to schedule it

  • @tryambakpanchal8318
    @tryambakpanchal8318 หลายเดือนก่อน +2

    What if we created roles in keycloak with name ROLE_ started can we escape writing our own jwtauthentication converter class so we can reduce much code ?

  • @leiwang07
    @leiwang07 5 หลายเดือนก่อน

    It is very nice and in-depth explanation. I really appreciate and learn a lot from it. However, the end of the video the converter implementation really makes Spring Security a difficult, confusing, and even if you understand in depth, super ugly framework to work with.

  • @ОлексійМоренець
    @ОлексійМоренець 7 หลายเดือนก่อน

    Is there a way to generate token without knowing that magic url? How did you know the url? Is there any documentation about this?

  • @DesasterUA
    @DesasterUA ปีที่แล้ว +2

    How would you forgo if you had to store additional user info that keycloak does not support like for example user preferred language?

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +2

      Happy you liked it
      I will create another video to show this details

    • @DesasterUA
      @DesasterUA ปีที่แล้ว

      @@BoualiAli that would be really helpful, thank you 😁

  • @dhineshdhinesh6276
    @dhineshdhinesh6276 ปีที่แล้ว

    Thank you so much kindly put video about websocket chatbot spring boot thank you soooo much for you help

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Wow, I just finished recording this video.
      It will be published really soon

    • @dhineshdhinesh6276
      @dhineshdhinesh6276 ปีที่แล้ว

      Really thank you soo much sir you are great crystal clear explanation thank you so much sir

  • @ollySun
    @ollySun 26 วันที่ผ่านมา

    How do l get the list of users from keycloak via api and change password via api without going to keycloak

  • @justedlev
    @justedlev ปีที่แล้ว

    Hello, great video tutorial, but could you explain how you can secure endpoints without using method level annotations? Thanks

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Check the Spring boot roles and pernmission video and you will have you answer there

  • @PhillcoAmaru
    @PhillcoAmaru 4 หลายเดือนก่อน

    Thanks for your great tutorial, Alibou!
    Although I am getting a 502 Bad Gateway and Access Denied response at 43:12. Has anyone went through this?

  • @santhosha-z5x
    @santhosha-z5x 4 หลายเดือนก่อน

    help when i stop keycloak server and start again all my previous configurations got reset any help?

  • @maaryeem7085
    @maaryeem7085 ปีที่แล้ว

    Hi Ali, first of all I want to thank you for this very detailed and well-explained guide, it really helped me have a clearer idea on how keycloak integration works in spring boot,
    but I really want to ask for help on this minor problem,
    i'm still getting 403 forbidden when even after adding the role

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Please follow the steps precisely and assign the roles to the user

  • @yokenji7179
    @yokenji7179 6 หลายเดือนก่อน

    The check if the resouceId is null does not work the user can still access onsecured endpoint even when he is not authorized for this backend application

  • @ElmshornBoy
    @ElmshornBoy 6 หลายเดือนก่อน

    Hello, for newer Keycloak fill e-mail, first name and last name and then access token is returned to Postman.

  • @Gsuresh_3
    @Gsuresh_3 5 หลายเดือนก่อน

    Creating client : capability config - authentication flow what is the use of all options can you make a clear video

  • @federico7014
    @federico7014 4 หลายเดือนก่อน

    I'm watching this video because I'm starting a new job as a senior software engineer and I don't know what keycloack is.

  • @corinemb1809
    @corinemb1809 9 หลายเดือนก่อน

    Great. Thx a lot

    • @BoualiAli
      @BoualiAli  9 หลายเดือนก่อน

      You are welcome!

  • @enishalilaj9309
    @enishalilaj9309 ปีที่แล้ว +1

    Hi there, great content! Just a quick question is it correct to say principle or principal? As I think we are referring to the request initiator which in this case would be a principal, but we refer to it as principle. Is this a typo or that's how it is supposed to be? Keep up the good work :)

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Can you please remind me which part of the video 😅

    • @enishalilaj9309
      @enishalilaj9309 ปีที่แล้ว

      @@BoualiAli For example the field principleAttribute, shouldn’t that be principalAttribute? I don’t get what are you referring to when you say principle? Just needed to clarify this :)

  • @esrefcagataydogan8308
    @esrefcagataydogan8308 4 หลายเดือนก่อน

    Hi Ali, I am developing an application using Keycloak and Spring Boot. I have implemented OTP login and Google Sign-In, but there is an issue. If a user has previously logged in with OTP and then tries to log in with Google using the same email, I get a "user already exists" error (federated identity account exists). In this case, I want the accounts to be merged. In other words, the user should be able to log in using both OTP and Google Sign-In with the same email. Could you help me with this?

  • @hendisantika
    @hendisantika 3 หลายเดือนก่อน

    Can You upload the Realm file to be imported? I tried the sample but still 403

  • @siriusmarz512
    @siriusmarz512 ปีที่แล้ว

    Thank you so much

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you likedit

  • @acgc2025
    @acgc2025 11 หลายเดือนก่อน

    Amazing video Bouali. One question: How could I register new users in frontend with keycloak using Angular with springboot? in my frontend in a login form, first I check if the credencials is ok, if it is ok, I return the token for user be able to make request, is it right? Thanks

  • @denny3441
    @denny3441 ปีที่แล้ว

    How can we test this security configuration setup? Maybe you can do a tutorial on unit testing the security chain.

  • @koushikm3900
    @koushikm3900 ปีที่แล้ว

    well explained video ❤
    Could you please make a video where we are implementing social login and own jwt authentication where we can give access to the github user to access the secured end point of spring boot.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Sid you check the oauth2 video?

    • @koushikm3900
      @koushikm3900 ปีที่แล้ว

      Yes ali i have watched oauth2 video.Pls make a video on this topic

  • @SabrineZaddem-t8g
    @SabrineZaddem-t8g 11 หลายเดือนก่อน

    thank You Ali for This amazing tutorial ,can u do a vid about keycloak(24.0.1) authentifiaction(login//logout)with spring boot 3 thanks

    • @BoualiAli
      @BoualiAli  9 หลายเดือนก่อน

      coming next week

  • @denzmc
    @denzmc ปีที่แล้ว

    28:48 you must add /auth , otherwise 401

    • @denzmc
      @denzmc ปีที่แล้ว

      in my case)))

  • @dmitriizheleznikov2949
    @dmitriizheleznikov2949 ปีที่แล้ว +1

    Hi, thanks for the video! I have a question (maybe someone already found an answer): I tried to just create a new role ROLE_test_admin, and got 403, I guess it was because of principal, but why... What I'm trying to understand why we need to read "preferred_username" instead of "sub"?

    • @dmitriizheleznikov2949
      @dmitriizheleznikov2949 ปีที่แล้ว +1

      That's very strange, but the problem is not in principal "preferred_name" or "sub". "JwtAuthenticationConverter" simply doesn't get "resource_access....roles". It only checks
      Arrays.asList("scope", "scp");
      That's the reason... why...

    • @casimk5643
      @casimk5643 ปีที่แล้ว

      @@dmitriizheleznikov2949 try using hasRole rather than hasAuthority on the method.

  • @abushdesalegn9867
    @abushdesalegn9867 4 หลายเดือนก่อน

    Thank you for helping on this. I have a question: @28:01 why there is a need to assign client_admin role to user alebou? since the Admin has that role already. I believe this is duplicate.

  • @iuliusciorica282
    @iuliusciorica282 ปีที่แล้ว +1

    Hello,
    Your tutorial is very good.
    Can you make a tutorial in which, in addition to Keycloak 21 and Spring Boot 3, Angular 16 is also integrated?
    There are few tutorials that integrate Keycloak, Spring Boot and Angular, and if there are, they are old because Keycloak has changed a lot in the meantime and many things are no longer the same.
    Thank you!

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +4

      Happy you liked it
      I'm working on a full angular video and it will be released soon.
      After that I will create another one for keycloak integration with Angular too

    • @iuliusciorica282
      @iuliusciorica282 ปีที่แล้ว +2

      @@BoualiAli Thank you!
      I am a fan of Angular and Spring Boot ❤

    • @DashaZakella1001
      @DashaZakella1001 ปีที่แล้ว +1

      @@BoualiAli i will wait that

    • @siriusmarz512
      @siriusmarz512 ปีที่แล้ว

      @@BoualiAli yes that is so awesome. Thank you.

  • @Carloshdv
    @Carloshdv 8 หลายเดือนก่อน

    How to create an user on keycloak with Java code ?