Keycloak Tutorial Series - Creating Event Listeners

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

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

  • @nayankulkarni5131
    @nayankulkarni5131 2 ปีที่แล้ว

    This is such a clear understanding of custom keycloak SPIs. Kudos to the creator!

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

    This is home and I always love code environs

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

    I am trying to do in windows without docker. In realm settings->events, my custom event is not identified by Keycloak. Could you please share the deployment process in windows.

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

    Hello, I need to write a spi which dens updates send forgot password and update the local db with the same DB. I couldn't find any example whıch includes the password ınside the event. How could I get the updated password and update the local db. Thanks.

  • @cookdakoo9315
    @cookdakoo9315 3 ปีที่แล้ว

    How to add custom event listener like session-restrictor, without the UI, that is from standalone.xml or something else, so that it can be automated?

  • @djoleezcool
    @djoleezcool 2 ปีที่แล้ว

    Can Keycloak listen form some other queue? For example I publish some message from my service and I have to handle that on Keycloak so I can perform some action.

    • @codelens2042
      @codelens2042  2 ปีที่แล้ว

      Yes, it can.

    • @djoleezcool
      @djoleezcool 2 ปีที่แล้ว

      Thanks for reply. But can you give me a hint please? :)

    • @codelens2042
      @codelens2042  2 ปีที่แล้ว

      @@djoleezcool Sure, you could just add the dependency for the queue of your choice (RabbitMQ, Kafka etc) in the normal way you'd add a maven/gradle dependency. Then create a consumer within the customized keycloak application. I hope this helps?

    • @djoleezcool
      @djoleezcool 2 ปีที่แล้ว

      @@codelens2042 What would be customized keycloak application?

  • @negriyd
    @negriyd 3 ปีที่แล้ว

    Guys, I try to write EventListenerProvider for catch LOGOUT events, and realized that comes events LOGIN and CODE_TO_TOKEN only. LOGOUT events don't come to overrided method onEvent(Event event). Any idea about the reason?

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

      Hello,
      LOGOUT event is also available. Here's a gist I've created to illustrate this
      gist.github.com/EricNjue/f555ca276c7fe60e96b941cb674421c9

    • @negriyd
      @negriyd 3 ปีที่แล้ว

      @@codelens2042 Hello Eric, thanks for your answer. You a right, LOGOUT event type is supported, and I try to catch logout event exactly the same as you show in gist... Let me explain what exactly I means under my issue. I recorded the video for show issue, please take a look if you will have a time: th-cam.com/video/TFdcJn-e4no/w-d-xo.html . Thank you.