cindy

start signing ceremony via authentication token

0 votes

Hi,

for InPerson signing, we manually launch signing ceremony with 

GET https://sandbox.e-signlive.ca/access?sessionToken=token

from Postman, I got the response as sessionId such as 

{

    "sessionId": "89d04e0a6e29341d2ddb102f4ca678805ce3b4b0e62ed4dd"

}

but from browser, when I monitor the response when using the same URL (https://sandbox.e-signlive.ca/access?sessionToken=token), the response seems like html page. 

My question is for automation testing purpose, after start session, the next is to sign the document. how do I use that sessionId in the following request for signing the document? currently, once start session is successful with returned sessionId, and I request to sign, I got 401 (unauthroized) error. 

 

thanks,

Cindy

 


Reply to: start signing ceremony via authentication token

0 votes

Hi Cindy,

 

How Postman differs from the browser is the "User-Agent" header, however from the testing purpose, returning sessionId in JSON format would be more ideal. In the following signing call, add a cookie ESIGENLIVE_SESSION_ID={the_session_id} and this will authenticate the request.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to:

0 votes

I see. how about the signing/confirm call, is it different now?

I used to have signing request for v11.25 as 

POST /packages/${packageId}/documents/${DOC_ID}/approvals/${approval_Id}/sign

confirm signing request as :

POST /packages/${packageId}/documents/${DOC_ID}/actions

seems they are not working anymore for SaaS. 

 

thanks,

Cindy


Reply to:

0 votes

Hi Cindy,

 

Because the New Signer Experience no longer invokes these two calls, and uses GraphQL APIs instead.  Although these two calls still work from my test, it became less meaningful if you want to automate testing the UI functions through this process. I am not sure if you'd like to test the equivalent GraphQL API or another aspect like using Selenium to simulate user actions.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: start signing ceremony via authentication token

0 votes

Hi Duo,

when I try to write the negative test case for signer order, if the 2nd signer sign before the 1st one. the signing ceremony screen(see attached) has the message "it is not your turn", I am wondering that where this message coming from? when I monitor the network traffic for this scenario, I searched for the wording, but it seems not coming from any request/response. do you have any idea?

thanks,

cindy

 


Attachments

Reply to: start signing ceremony via authentication token

0 votes

Hi Duo,

do you get chance to take a look at my last question posted in this thread?

 

thanks,

Cindy


Reply to: start signing ceremony via authentication token

0 votes

Hi Duo,

you are saying it's controlled by javascript code which I can't find it via monitoring the network traffic in the browser?

I am doing test case for this scenario, and from assertion perspective, what I expect is when signing order is wrong which showed 'it is not your turn to sign' from the response (maybe from js or GraphQL API etc), when I test the correct signing order which doesn't have the message returned from the response.

not sure if this is achievable or not?

thanks,

Cindy

 


Reply to: start signing ceremony via authentication token

0 votes

I see. thanks. 


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