Shashikant | Posts: 4

Integration with Pega - failed to retrieve session - unauthorized

0 votes

Hello,

I am integrating with Pega and configured everything as per guide. But getting below error. I am passing API Key from my login as "Basic"+"XXXXXX" and using endpoint as - https://sandbox.esignlive.com/api/packages

Also tried with endpoint - https://sandbox.esignlive.com/api

{"messageKey":"error.unauthorised.noSession","message":"Failed to retrieve Session","code":401,"name":"Unauthorized"}

Can someone help me with this?


Duo_Liang | Posts: 3776

Reply to: Integration with Pega - failed to retrieve session - unauthorized

0 votes

Hi Shashikant,

 

Can you have a quick try adding a space between "Basic" and your API Key? Please let me know if it still doesn't work for you.

 

Duo

 


Shashikant | Posts: 4

Reply to: Integration with Pega - failed to retrieve session - unauthorized

0 votes

Hi Duo, I tried by adding a space but still getting same error.


Shashikant | Posts: 4

Reply to:

0 votes

Hi Duo,

I have tried by adding a space after Basic but still getting same error. Is there anything else I can try to resolve this issue? This is a blocker for me to proceed forward with this integration in Pega. Appreciate a quick help.


mwilliams | Posts: 957

Reply to: Integration with Pega - failed to retrieve session - unauthorized

0 votes

Hey Shashikant,

There should definitely be a space so that it's "Basic YOUR_API_KEY". Also, you'll want to check the OS_NewPkgRequestPOST Data Transform that your application is using and make sure that the "Sender" section isn't filled out with any sender info for someone that isn't a Sender in your OneSpan Sign account. If you're trying to send on behalf of the main account, you could just disable this section of the transform. Let me know.


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