Last active
June 3, 2020 06:12
-
-
Save bmonteiro/96c5864900e526e2ca5f7c6f22f09827 to your computer and use it in GitHub Desktop.
Tyk Virtual Endpoint for Okta Event Hooks (One-Time Verification Request)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function oktaHandler (request, session, config) { | |
log("X-Okta-Verification-Challenge: " + request.Headers["X-Okta-Verification-Challenge"]); | |
b = { "verification" : request.Headers["X-Okta-Verification-Challenge"].toString()}; | |
var responseObject = { | |
Body: JSON.stringify(b), | |
Code: 200 | |
}; | |
return TykJsResponse(responseObject, session.meta_data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment