Using Callback Event with REST API Listener
Wednesday, February 15, 2023 at 07:19amHey guys.
I'm developing a connector with Digibee as listener of the Callback Event Trigger, although event after providing the API Key in the Callback Key field, the Callback event is getting 401 Unauthorized.
Is there a cURL model of the request sent from the Callback Event application so there I can edit the header tag to accept as API Key?
Reply to: Using Callback Event with REST API Listener
Wednesday, February 15, 2023 at 08:16amHi Emerson,
Thanks for your post! When a callback event gets triggered, OneSpan Sign callback service will make a POST call to your listener endpoint, with the callback key as the authorization header, this call looks like the below:
HTTP Request
POST {your_callback_url}
HTTP Headers
Authorization: Basic {your_callback_key}
Content-Type: application/json
Request Payload Example
{"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_COMPLETE","sessionUser":"e00696ec-d6f5-4feb-89c5-a5ce002a6c66","packageId":"5n4obeO8jYoPp126Cm-Y3fxdfbo=","message":null,"documentId":null,"createdDate":"2018-06-30T20:15:01.038Z"}
To note, the callback key should be the credentials used to access Digibee system, instead of the OneSpan Sign API Key.
Duo