Integration with Pega - failed to retrieve session - unauthorized
Thursday, October 8, 2020 at 11:24pmHello,
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
Friday, October 9, 2020 at 09:33amHi 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
Reply to: Integration with Pega - failed to retrieve session - unauthorized
Friday, October 9, 2020 at 09:36amHi Duo, I tried by adding a space but still getting same error.
Reply to: Hi Shashikant, Can you…
Saturday, October 10, 2020 at 06:26pmHi 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.
Reply to: Integration with Pega - failed to retrieve session - unauthorized
Monday, October 12, 2020 at 09:10amHey 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.