
ShidehK.24849 (Customer) asked a question.
Hi
I have set up an event hook from Okta to an azure function. When I run the verification request I see in my azure function logs that the request is processed and the verification code is returned as {"verification":"U09nvGv8rRrb8VS9vhlpfr-vFV2ni7CkjeMixM8r"} but the it still fails not able to process the response.

After registering an Event Hook, but before you can use it, you need to have Okta make a one-time GET verification request to your endpoint, passing your service a verification value that your service needs to send back. This serves as a test confirming that you control the endpoint. The way your service needs to handle this one-time verification is as follows: The request from Okta will contain an HTTP header named
X-Okta-Verification-Challenge
. Your service needs to read the value of that header and return it in the response body, in a JSON object named
verification i.e.:
{ "verification" : "value_from_header" }
Note that the value comes to you in an HTTP header, but you need to send it back in a JSON object.
Are you sure you are returning a JSON Object to OKTA ?