<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008wvwz5CAAOkta Classic EngineLifecycle ManagementAnswered2023-03-27T17:19:34.000Z2023-03-25T15:03:43.000Z2023-03-27T17:19:34.000Z

AlexeyR.51649 (Customer) asked a question.

Verified event hook doesn't receive events immediately

I create a event hook using API. If I create a user immediately after verifying the hook, the hook never receives the user.lifecycle.activate event. If I wait for 60 seconds, it does. Is this expected? Is there a way to check Okta is ready to send events to the hook?


  • Mihai N. (Okta, Inc.)

    Hi @AlexeyR.51649 (Customer)​ , I managed to set up a test environment for this scenario and got this banner when creating the event hook:

    image 

    so this is now confirmed as expected.

     

    Regards and good luck with your projects! 🙂

     

    Expand Post
    Selected as Best
  • Mihai N. (Okta, Inc.)

    Hi @AlexeyR.51649 (Customer)​ , Thank you for reaching out to the Okta Community!

     

    Please review the following documentation on the subject of event hooks: 

    https://developer.okta.com/docs/concepts/event-hooks/#ongoing-event-delivery

     

    "Okta delivers events on a best-effort basis. Events are delivered at least once. Delivery can be delayed by network conditions. Sometimes, multiple requests may arrive at the same time after a delay, or events may arrive out of order. To establish ordering, you can use the time stamp contained in the data.events.published property of each event. To detect duplicated delivery, you can compare the eventId value of incoming events against the values for events previously received.

    There is no guarantee of maximum delay between event occurrence and delivery."

     

    The timeframes for the verification are nor explicitly documented, but I also assume it could vary due to external factors as well. 

     

    Please review the debugging instructions as well for situations where there might be a time-outs, failures, errors. You should be able to find relevant information in the System Logs in such situations.   

     

     

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

    --------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
  • AlexeyR.51649 (Customer)

    Ok, sorry for the bad title phrasing. My problem is that "Events are delivered at least once" doesn't seem to be true for events which happen too soon after the hook was verified.

  • AlexeyR.51649 (Customer)

    And sorry again because I missed "expand post" in your reply and it looked like simply directing me to documentation.

    • Mihai N. (Okta, Inc.)

      Hi @AlexeyR.51649 (Customer)​ , I managed to set up a test environment for this scenario and got this banner when creating the event hook:

      image 

      so this is now confirmed as expected.

       

      Regards and good luck with your projects! 🙂

       

      Expand Post
      Selected as Best
This question is closed.
Loading
Verified event hook doesn't receive events immediately