Event Hooks - Sample ReST Application


I am trying to setup an Event Handler but could notice that the ReST Application which we developed was not getting invoked while validation.I am looking for a Sample ReST Application code/doc which would give some insight on how exactly the ReST Application would like .
Thanks in advance.


To verify the event hook, you need to read the value of X-Okta-Verification-Challenge header and then display it in the page as follows:

    "verification": "VALUE_FROM_X-Okta-Verification-Challenge"

Once the hook has been verified, you can return an empty response and it will be treated as successful in Okta.

You can find here a simple library to handle all Okta hooks, including event hooks.