Skip to main content
Question

Consent required error when creating envelope in embedded flow


Forum|alt.badge.img+2

I'm working on a new application that has integration to Docusign to allow customer to sign documents using the embedded flow. The way it works is we generate the signature URL and show it inside a modal so customers can sign without leaving our application.

So far so good. Everything was working properly until we promoted the application to production.

All of a sudden we've started to see {"error": "consent required"} errors in the call that generates the access token that is used in the envelope api calls. Our application is written in Python and we are using the request_jwt_user_token function in the Python SDK.

 

I'm clueless as to why this is working in staging but not in production. I've updated all the necessary parameters with their production values but I'm not able to authenticate successfully 🤔

2 replies

Forum|alt.badge.img+2

Hi ​@marcos.pacheco 

The error message ( {"error": "consent required"} ), means that you have not granted consent to the application. You have granted consent to the application in developer account environment, you need to grant consent to the application in production account as well. You can use the link below.

 

https://account.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation
    &client_id=YOUR_INTEGRATION_KEY
    &redirect_uri=YOUR_REDIRECT_URI 

 

Please consult the links below to learn more:

https://developers.docusign.com/platform/auth/consent/obtaining-individual-consent/

https://developers.docusign.com/platform/auth/consent/obtaining-admin-consent-internal/

https://developers.docusign.com/platform/auth/reference/scopes/


Forum|alt.badge.img+2

@Achille.Nisengwe Thanks for the reply. The integration is working now ✅