Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Using Adobe Sign API

Community Beginner ,
Aug 16, 2022 Aug 16, 2022

Hi,

I'd like to experiment with Coldfusion and Adobe Sign. It uses OAuth.

Some info: https://secure.au1.adobesign.com/public/static/oauthDoc.jsp

Example:

<cfhttp result="result" method="GET" charset="utf-8" url="https://secure.na1.adobesign.com/public/oauth/v2">
<cfhttpparam
type="FORMFIELD"
name="response_type"
value='code'
/>
<cfhttpparam
type="FORMFIELD"
name="client_id"
value='my client id is omitted.'
/>
<cfhttpparam
type="FORMFIELD"
name="redirect_uri"
value="https://localhost/testsign/redirect.cfm"
/>
<cfhttpparam
type="FORMFIELD"
name="scope"
value='user_read:account+user_write:account+user_login:account+agreement_read:account+agreement_write:account+agreement_send:account+widget_read:account+widget_write:account+library_read:account+library_write:account+workflow_read:account+workflow_write:account'
/>
<cfhttpparam
type="FORMFIELD"
name="state"
value='1234'
/>
</cfhttp>

 

If I cfdump the result the Status code is 200 OK

 

It has has a Filecontent var containing html. If I paste this html into a page to view it, I can see that there is an error text "Unable to authorize access because the client configuration is invalid: invalid_request"

 

The expected outcome would be the page should redirect to the URL https://localhost/testsign/redirect.cfm

 

This does not occur. The cfhttp.FileContent var does hold html.

 

I have enabled http on localhost.

 

I don't know what the issue is.

Information about Adobe Sign is pretty scarce. Maybe I am doing something obviously incorrect?

 

Any thoughts?

TOPICS
Advanced techniques
279
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2022 Aug 16, 2022

Reading the docs through again, I have changed url to https://secure.au1.adobesign.com/public/oauth/v2 and tried get, as well as post.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 31, 2022 Aug 31, 2022

Here is a sample application.cfc to login to Adobe Sign Azure server.  https://docs.google.com/document/d/16f_O3tTQahPekViUPZ51Tuq72LB8hWh2EWY59S13qso/edit?usp=sharing

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 04, 2022 Sep 04, 2022
LATEST

A "GET" is fine. Cfhttp will then pass the form fields as variables in the query-string.

 

To resolve the problem, check each of the 5 resolution steps in the Adobe OAUTH documentation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources