8

I'm currently trying to build a back-end system, i.e. no user interface which should send documents out for signature using Echosign.

The page for configuring the Oath token requires a redirect URL, but obviously my application doesn't have a UI and therefore no redirect URL either.

Clearly there is a whole OAuth world that I can dive into now, but I'm hoping to use their API quickly without needing to understand all the ins-and-outs of OAuth first. All of the samples seem to be based on a web interface scenario, which is not the case for me.

Any pointers would be appreciated.

Greg Fullard
  • 365
  • 3
  • 15
  • Did you have success with this question? – Andrei Piatrou Mar 17 '17 at 06:41
  • @AndreyPietrov: unfortunately not. Have moved this task to my backburner for now, so any assistance will still be appreciated. If I figure it out from my side I'll certainly post the results here. – Greg Fullard Mar 22 '17 at 23:23
  • kindly check this, you might be looking for this, Integration token https://community.adobe.com/t5/adobe-acrobat-sign-discussions/how-to-use-the-integration-key/td-p/10853151 – Soham s More Oct 20 '22 at 11:58

3 Answers3

1

The only way I've been able to do things like this in the past is to initially follow the default authentication process, then once you have an access token you can create a cron task that runs every say 30 minutes to refresh your access token before it expires.

As long as the cron task continues to run you will always have a valid access token and wont need to go through the login/redirect url process.

bananabread_
  • 27
  • 1
  • 4
1

I would contact Adobe support. They can enable an integration key within your Adobe Sign account that would allow you to integrate with a static key that you could use integrate with your backend system instead of OAUTH.

  • Count on the static authentication method going away in the not-too-distant future at Adobe. – Code39 Oct 19 '18 at 23:46
  • It's still available in the latest version: https://helpx.adobe.com/sign/kb/how-to-create-an-integration-key.html This should be marked as the answer. – Garrison Neely Dec 17 '19 at 17:52
  • Hey there, trying to do the same, does anybody know where to find any docs on how to actually use the generated integration key? It seems that Adobe has newer API documentation only accounts for OAuth stuff. Cheers – Daniil Ivanov Feb 20 '20 at 07:02
1

_bananabread has the right idea. Follow the steps on this website:

https://www.adobe.io/apis/documentcloud/sign/docs/step-by-step-guide/get-the-access-token.html

up until you have your JSON response with your refresh_token, this is all you need.

Next, you going to need to make a refresh token request that refreshes your token everytime you need to use it and returns you a brand new OAuth token.

Here is a Java code snippet that will refresh your acquired token:

    HttpResponse response = null;
    String access_token = "";
    HttpClient httpClient = HttpClientBuilder.create().build();
    HttpPost request = new HttpPost("http://api.echosign.com/oauth/refresh?"+
                                        "refresh_token=tokenYouJustGot&" +
                                        "client_id=clientIdUsedInPreviousSteps&"+
                                        "client_secret=clientSecretUsedInPreviousStep"+
                                        "grant_type=refresh_token");


    request.addHeader("content-type", "application/x-www-form-urlencoded");
    response = httpClient.execute(request);
    String json = EntityUtils.toString(response.getEntity());
    JSONObject jobj = new JSONObject(json);
    access_token = jobj.getString("access_token");

access_token String will now contain a brand new OAuth access token with you can use for any request ie POST or GET.

RetroPanda
  • 61
  • 1
  • 1
  • 8