Shashikant

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?


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

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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.


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.

- Michael Partner and Developer Technologies Manager, OneSpan Facebook - Twitter - LinkedIn


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