Secure Your Spring Boot Microservices with Keycloak using OpenID and OAuth 2.0

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

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

  • @SanketChopade-h8t
    @SanketChopade-h8t 2 หลายเดือนก่อน

    You are saving my job, I am fresher ,I learn lots of things in this video , this is very useful video

  • @PravinSarode-c8b
    @PravinSarode-c8b ปีที่แล้ว +1

    great bro.! very descriptive demo ,keep it up

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

    Thank you from the bottom of heart! Keep it up!

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

    Keep it up😇

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

    thank you very much

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

    Great tutorial as far as it goes. But a normal Spring Boot application handles retrieving the access code and adding the authorization header as part of the OIDC flow. Can you please provide code that handles this? I have tried but can't get the properties right. Thanks!

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

    This is old version of Spring security, Can you make video on Spring Security > 5.5, Spring 3.0 ?

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

    Thanks a lot. How can we access the user or token inside the controller?

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

    thanks for helpful tutorial. Amazing!!!

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

    why i get this error msg when i put kc.bat start-dev after doing all steps that you did before ,this is an error from cmd C:\Program Files\Java\keycloak-21.0.0\bin>kc.bat start-dev
    Unrecognized option: --add-opens=java.base/java.util=ALL-UNNAMED
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

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

      Ensure that you are using a Java version that is compatible with the version of Keycloak you are running

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

    Thank you for this great tutorial! It was really helpful :D

  • @karl-heinzpeters7283
    @karl-heinzpeters7283 4 หลายเดือนก่อน

    Great

  • @SumanSarkar-uq2ex
    @SumanSarkar-uq2ex ปีที่แล้ว +1

    Hey @lambdaCode, could you please cover how to authenticate Swagger, Spring Boot with Keycloak.

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

    How to self register if user is first time visitor in our application cause he does not have token

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

      This type of application is mainly used, for example, when you work for a company and have a Microsoft account provided by them. The company may have multiple systems, and by using the provided account (email), you can log in to these systems if you have the necessary permissions. However, you can also be redirected to the original registration page(for registration).

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

    How can I invalidate a token in backend service after logging out from keycloak server. User logged out from frontend service, frontend service calls keycloak server, now how can i configure keycloak to revoke the token from all backend service?

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

      After the user logs out and is redirected back to your frontend service, the frontend should no longer have access to the user's tokens.
      Keycloak has a token revocation endpoint (/auth/realms/{realm}/protocol/openid-connect/logout) that allows you to revoke tokens explicitly. You can make a POST request to this endpoint with the user's token to revoke it.

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

    why can't i test it using my browser not postman?

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

      test POST, PUT, DELETE, requests using a web browser, not as straightforward as testing GET requests. Browsers are primarily designed for displaying web content and rendering HTML, so they don't have built-in features for easily sending POST, PUT, DELETE requests with custom data.

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

    and what does microservices have to do with it?

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

    I'm stuck on the configuration class. Can someone help me understand how to set it up?

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

      Please goto our channel github page, and find the repo, it will help you