vortigo_emerson | Posts: 1

Using Callback Event with REST API Listener

0 votes

Hey 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?


Duo_Liang | Posts: 3776

Reply to: Using Callback Event with REST API Listener

0 votes

Hi 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

 


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off