shana_lajoie

Designer

0 votes
Hi, I'm looking at the designer https://developer.esignlive.com/guides/feature-guides/designer/. The designer enable you the modify the signer and add signatures. I would like to be able to get a similar URL but to allow my users/clients to upload their document and choose their signers. Do something like that exists? Because to acces the designer, I need a package created. To create my package, I need to have Signers, Signatures and a document. I would like my users to create their package with a Designer. Thanks!

Approved Answer

Reply to: Designer

1 votes
This worked fine for me:
PackageId packageId = new PackageId("RfZxC8yM3DTYuSUMgQG2inR6PHo=");

string userToken = eslClient.AuthenticationTokenService.CreateUserAuthenticationToken();

Debug.WriteLine(string.Format("https://sandbox.e-signlive.ca/auth?authenticationToken={0}&target=https://sandbox.e-signlive.ca/a/transaction/{1}/designer", userToken, packageId.ToString()));
Make sure you also changed the url to sandbox.e-signlive.ca after "&target".
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
Hi Shana, Are you getting the new designer view or the classic version? With the new designer view, you can give your users the ability to add signers, upload documents, etc.. ss You can also give your users access to the package view where they can set all the settings etc...
DocumentPackage pkg = PackageBuilder.NewPackageNamed("test package")
    .Build();

PackageId packageId = eslClient.CreatePackage(pkg);

string userToken = eslClient.AuthenticationTokenService.CreateUserAuthenticationToken();

string target = "https://sandbox.esignlive.com/a/transaction/" + packageId.Id;

Debug.WriteLine("https://sandbox.esignlive.com/auth?authenticationToken=" + userToken + "&target=" + target);
Note that if you choose this road, your users will have access to the entire account.
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
What I am doing is creating creating a package with a name and a signer (no documents and signatureS). After that, I created the token (CreateUserAuthenticationToken) then call the BuildRedirectToDesignerForUserAuthenticationToken fonction. The url created is the one I use to access the designer. In this designer, I cannot add documents, so I am stuck at the first page. It that the old designer? Thanks in advance.

Reply to: Designer

0 votes
Yes, that is the old designer. You can get the new designer as per: https://developer.esignlive.com/guides/feature-guides/designer/
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
Thanks, you are very useful :). I did the modification. But i always receive a Unauthorized Access Your authentication token was incorrect. When I am trying to acces the URL returned :(. I am calling the CreatePackage. I have my package Id. Then I hame creating the token and buiding the url : IEslClient eslClient = _apiClientService.GetClient(connectionInfo); String userAuthenticationToken = eslClient.GetAuthenticationTokenService().CreateUserAuthenticationToken(); return string.Format("https://sandbox.esignlive.com/auth?authenticationToken={0}&target=https://sandbox.esignlive.com/a/transaction/{1}/designer", userAuthenticationToken, packageId); I put this url in my browser and then Unauthorized Access + Your authentication token was incorrect. What am i doing wrong ?

Reply to: Designer

0 votes
What is the url you use to login to the user interface?
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
https://sandbox.e-signlive.ca. I tried changing the start of the url by replacing https://sandbox.esignlive.com to https://sandbox.e-signlive.ca, but still the same error. Unauthorized Access + Your authentication token was incorrect. :( Thanks

Reply to: Designer

0 votes
Can you give me a package id so I can test on my end? Thanks,
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
Transaction Id = 7ec706ac-bac2-43ba-8078-5be81aca3df3, Package Id = RznQeBPYJLwCa81sCPsiJJ3kb5A=

Reply to: Designer

0 votes
It worked ! :D I did not change the second part of the url. Thank a lot ! Super fast reply, really appreciated.

Reply to: Designer

0 votes
Another question ; the url is now working, but it brings me to a page where I see my inbox. I can then access the Draft tab and find my package. It does not bring be to my package directly?

Reply to: Designer

0 votes
I want the user to only be able to modify the package used for creating the url. I would not want the user to see the other packages?

Reply to: Designer

0 votes
If you are in the designer, you shouldn't be able to browse through the account. This is the view you should see: designer
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
Of course, I'm assuming you are testing in a new private window or through an iframe.
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
Actually I'm using a WPF Control "Web browser" to navigate the URL. And it brings me to : But when I try it with a private Internet Explorer, it works. I will try to make it work with my Web Browser Control.

Attachments
iMAGE.png7.77 KB

Reply to: Designer

0 votes
Also, what is the reason why it works on a private Internet explorer session and not otherwise? What does the EsignLife detects to be able to display one page or the other?

Reply to: Designer

0 votes
It is most likely due to sessions being kept alive due to logging in the account (i.e. cookies). Essentially, this shouldn't be a problem for your users as they wouldn't have logged in your account. Therefore, there shouldn't be any conflict.
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
I undestant. However, In my application demo, i need it to work. It's wierd, when i open the url in internet explorer or via google chrome, and not even in private session, I get to the correct page. However, when I'm going to it with my WebBrowser control, the page I see is the one with the inbox, and it says that I am logged in (Welcome [email protected]). I log out. I reload the demo application, it brings me page to this page. Funny thing is I never manually logged in on the esignlife website. I dont even know the password. When I load the page with the System process.start, it brings me the the page I want. Ergg, the webBrowser control is making me mad.

Reply to: Designer

0 votes
I am experiencing the same behavior as you when I created a sample WPF application. Let me try a few things and get back to you.
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
That is very nice of you :) I still continue to try to make it work. If I succeed, I will let you know also.

Reply to: Designer

0 votes
From what it seems like, the redirect to the package designer is not happening. This is most likely a bug with the .NET framework. For now, the only workaround I've found is opening the designer in a new IE window using the System.Windows.Forms.WebBrowser class. MainWindow.xaml
MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Silanis.ESL.SDK;
using System.Windows.Forms;
using System.Diagnostics;

namespace WpfApplication1
{
    /// 
    /// Interaction logic for MainWindow.xaml
    /// 
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            EslClient eslClient = new EslClient("==", "https://sandbox.e-signlive.ca/api");

            //DocumentPackage pkg = PackageBuilder.NewPackageNamed("test package")
            //    .Build();

            //PackageId packageId = eslClient.CreatePackage(pkg);

            PackageId packageId = new PackageId("RfZxC8yM3DTYuSUMgQG2inR6PHo=");

            string userToken = eslClient.AuthenticationTokenService.CreateUserAuthenticationToken();
            string url = string.Format("https://sandbox.e-signlive.ca/auth?authenticationToken={0}&target=https://sandbox.e-signlive.ca/a/transaction/{1}/designer", userToken, packageId.ToString());
            wfwb.Navigate(url, true);
        }

        private void WebBrowser_Navigated(object sender, System.EventArgs e)
        {
            
        }
    }
}
Haris Haidary OneSpan Technical Consultant

Reply to: Designer

0 votes
Thanks for trying. I was able to do it about the same way as you, by opening the default browser (Process.start). I just wish i could embed it directly into a form, of a window, and not open a new browser window. The url is redirecting, you're saying? It there any way to get the final url directly from one of the silanis APIs? To bypass the problem?

Reply to: Designer

0 votes
Note that I can make it work with no problem with the web browser from the CefSharp.Wpf library. I will use it then, since I am not able to make it work with the default WPF browser of the Winform browser. Thanks for all your help.

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