<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
Unable to Verify Event Hook. Hook Execution Failed
Lifecycle Management
Okta Classic Engine
Okta Identity Engine
SDKs & Libraries
Overview

An error occurs during the attempt to perform a one-time validation for a newly created event hook. The system displays the following error message in the API:

{
    "errorCode": "E0000001",
    "errorSummary": "Api validation failed: eventHook",
    "errorLink": "E0000001",
    "errorId": "oaeXbZEUojrQR67BJY5da4rXQ",
    "errorCauses": [
        {
            "errorSummary": "Unable to verify event hook. Hook <hook name> execution failed"
        }
    ]
}
Applies To
  • Event Hooks
  • One-time verification request
Cause

The web server that Okta called for event hook verification did not respond correctly with the value of the X-Okta-Verification-Challenge header present in the request.

Solution

For the one-time verification process for event hooks, Okta will send an HTTP request like the following:

GET /event-hook/ HTTP/1.1
User-Agent: Okta-Integrations
Accept: application/json
X-Okta-Request-Id: XOZfPkReFFZ10KWyGkzAMwAAADA
X-Okta-Verification-Challenge: Me_rShK8JHsTnbyYrWXCEoMGbM_zsZ6k0hLPZ_Pg
x-any-key: my-header-value
Authorization: my-shared-secret
Host: example.com

 

The web server will need to read the request header X-Okta-Verification-Challenge and pass its value in the body of the response, as the following example:

HTTP/1.1 200 OK
Date: Thu, 23 May 2019 08:51:47 GMT
Content-Length: 59
Content-Type: application/json

{"verification":"Me_rShK8JHsTnbyYrWXCEoMGbM_zsZ6k0hLPZ_Pg"}


Related References

Loading
Unable to Verify Event Hook. Hook Execution Failed