This topic contains 5 replies, has 2 voices, and was last updated by  nebulus 4 months, 2 weeks ago.

  • Author
    Posts
  • Participant
    nebulus
    Newbie
    Member since: 29.05.2018
    Number of posts: 4

    Hi there

    I’m just starting out with eSignLive and running through the .NET SDK samples.
    All the sample code I’ve tested so far executes fine except for the URL created for the Designer View. I tried for both the New and Classic views but neither works, for both I receive:

    {"technical":"This route does not exist.","messageKey":"error.routeNotFound","message":"The requested resource does not exist on this server.","code":404,"name":"Resource Not Found"}

    Classic Designer URL:

    https://sandbox.esignlive.com/api/auth?authenticationToken={token}&target=https%3a%2f%2fsandbox.esignlive.com%2fapi%2fdesigner%2f{packageId}

    New Designer URL:

    https://sandbox.esignlive.com/auth?senderAuthenticationToken={token}&target=https://sandbox.esignlive.com/a/transaction/{packageId}/designer

    Please advise what might cause this, I feel it must be something simple I’m overlooking somewhere.

    Cheers.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi,

    Are you able to retrieve a sender authentication token? Can you post an actual designer URL you are trying to build?


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    nebulus
    Newbie
    Member since: 29.05.2018
    Number of posts: 4

    Score

    0

    Hi Haris

    Thanks for the prompt response.

    With the following constructed URL I’m now receiving “Unauthorized Access: Your authentication token was incorrect.” for New View:

    https://sandbox.esignlive.com/auth?senderAuthenticationToken=ZDJhNzUyNWItN2ZhYS00YWVlLWE0NWMtNzVmNTQ2ZjQ2MWQx&target=https://sandbox.esignlive.com/a/transaction/ls-962JtcXALd0xzHkNRmrV9kkk=/designer

    And for Classic View (after required sandbox login):

    https://sandbox.esignlive.com/api/auth?authenticationToken=OWNiMTU1N2QtYmNmMC00NTA2LWEwODAtNTJkN2RjMWUwNzYx&target=https%3a%2f%2fsandbox.esignlive.com%2fapi%2fdesigner%2fWgx5GZ01Ea_38aFEN4KUIQ7ZHg4%3d

    with same error as before:

    {"technical":"This route does not exist.","messageKey":"error.routeNotFound","message":"The requested resource does not exist on this server.","code":404,"name":"Resource Not Found"}

    Thanks for your help!

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Here’s the code that I am using:

    EslClient eslClient = new EslClient("xxxxxxx==", "https://sandbox.esignlive.com/api");
    
    PackageId packageId = new PackageId("NCyinOOW0o4XHqk8eV0e4TBDeSw=");
    
    string token = eslClient.AuthenticationTokenService.CreateSenderAuthenticationToken(packageId);
    
    Debug.WriteLine(String.Format("https://sandbox.esignlive.com/auth?senderAuthenticationToken={0}&target=https://sandbox.esignlive.com/a/transaction/{1}/designer", token, packageId.ToString()));

    Are you sure you have the correct API key tied to your environment?


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    nebulus
    Newbie
    Member since: 29.05.2018
    Number of posts: 4

    Score

    0

    Hi Haris

    I only have one API Key.

    I looked more closely at the code you sent through compared with what I have and found that I was using the incorrect method to create the token (User vs Sender), and that resolved the issue for the New Designer View.

    Thanks!

    Participant
    nebulus
    Newbie
    Member since: 29.05.2018
    Number of posts: 4

    Score

    0

    Hi Haris

    Incidentally, I used the code from here which seems to be problematic:

    https://github.com/eSignLive/esl.sdk.net/blob/master/sdk/SDK.Examples/src/DesignerRedirectForApiKeyExample.cs

    Cheers.

You must be logged in to reply to this topic.