Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

Hey how do i create a URL to send to client after all documents are signed by all parties. This is to give them ability to download package with signed documents in it.

Replies Created

Reply to: Create URL to signed documents

0 votes

Thanks Liang, i tried that, at the time of package creation i loop through each signer and tried to call 

//create user authentication token
                string userAuthToken = eslClient.AuthenticationTokenService.CreateUserAuthenticationToken();

                //Create sender authentication token
                string senderAuthToken = eslClient.AuthenticationTokenService.CreateSenderAuthenticationToken(new PackageId(packageId.Id));

To get the token created and after all signer signed all document i tried to use the token and add it to https://sandbox.esignlive.com/access?sessionToken={signerAuthToken} but kept getting unauthorized access.

 

Thanks.


Reply to: Create URL to signed documents

0 votes

so i am trying under 30 min but still getting unauthorized error here is the code that i used 

//Create Package

 var package = packageBuilder.Build();
            var packageId = await Task.Run(() => eslClient.CreatePackage(package));

            foreach (var item in signingPackage.Signers)
            {
                //create user authentication token
                string userAuthToken = eslClient.AuthenticationTokenService.CreateUserAuthenticationToken();

                //Create sender authentication token
                string senderAuthToken = eslClient.AuthenticationTokenService.CreateSenderAuthenticationToken(new PackageId(packageId.Id));

                //Create signer authentication token
                string signerAuthToken1 = eslClient.AuthenticationTokenService.CreateSignerAuthenticationToken(new PackageId(packageId.Id), item.CustomId);
            }

 

i also tried to use to the token to get access to the document right after package is created and came across the same error.

 

What we really need is to create a URL for user after all signatures are complete and send them an email that documents can be downloaded using this url without any token expiration. very similar to email.Complete where is email is sent out by OneSpan with a download link.

We have done that for another project but for this we can not use email.Complete. I was looking at the URL sent by OneSpan when email.Complete is turned on is there any way to get the loginToken and form the same type of url for the user.

 

Thanks.


Reply to: Create URL to signed documents

0 votes

Hey so i was able to generate a url using string signingUrl = eslClient.PackageService.GetSigningUrl(packageId, item.CustomId); but this url also has the same behavior where the URL is only available until all signatures are not complete once the package is complete if i try to go to the URL it returned unauthorized.


Reply to: Create URL to signed documents

0 votes

Does it make a difference when this URL is generated i am currently generating it after marking package as sent

 

  // move package to sent status
            await Task.Run(() => eslClient.SendPackage(packageId));

            foreach (var item in signingPackage.Signers)
            {
                string signingUrl = await Task.Run(() => eslClient.PackageService.GetSigningUrl(packageId, item.CustomId));

            }

 


Subscriptions

Topics Replies Freshness Views Users
11 2 years ago 107
Profile picture for user Duo_Liang

Hey how do i create a URL to send to client after all documents are signed by all parties. This is to give them ability to download package with signed documents in it.

14 2 years 1 month ago 122
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.