BharathiSankar

Unauthorized error

0 votes
We are using the designer functionality in an iframe inside our application as described in the below reference, Reference : http://docs.esignlive.com/content/c_esignlive_integrator_s_guide/sdk/e_preparing_documents/designer.htm Whenever there is an update to the package, we are creating a Session and Accessing the Designer and loading the same in an iframe inside our application, intermittently we are getting the Unauthorized error when we try to launch the url in iframe. Could this be a conflict because we are requesting the new designer session more often and trying to launch the new session before the old one expires I have attached the screen shot of the error, could you please advise.

Attachments

Reply to: Unauthorized error

0 votes
Hey Bharathi, I'm assuming your are using a sender authentication token to build the url to the designer view. Sender authentication tokens are one time use. If you simply reload the page using the same sender authentication token, you will get the error "Your authenication token was incorrect". Therefore, you should create a new sender authentication token every time you make an update on your package to avoid the error.
Haris Haidary OneSpan Technical Consultant

Reply to: Unauthorized error

0 votes
Hi Harihaidary, We are creating new sender authentication every time we update the package.

Reply to: Unauthorized error

0 votes
How often are you creating a new sender authentication token?
Haris Haidary OneSpan Technical Consultant

Reply to: Unauthorized error

0 votes
It could be some time less the 20 seconds. we request the next token.

Reply to: Unauthorized error

0 votes
I'm not sure if it would cause the error you have been getting but that is definitely way too short of a time span between requests to get a sender authentication token. I would suggest increasing the delay between requests to at least a couple of minutes. Also, could you provide me the reason as to why you are trying to create to many sender authentication tokens? Once you've embedded the designer session in an iframe, the user can update/edit the package directly from the session.
Haris Haidary OneSpan Technical Consultant

Reply to: Unauthorized error

0 votes
Hi Harishaidary, We would like to enforce certain functionality, like only SMS authentication can be used for signers. In order to achieve that we have the add signer functionality in our custom application instead of using it from esignlive page. so when a new signer is added, we would need to request new token to reload the page.

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