Skip to main content
Solved

Error: Access token with Authorization Code Grant

  • April 15, 2024
  • 2 replies
  • 263 views

Forum|alt.badge.img+2

I’m trying to get the access token.

URI: https://account-d.docusign.com/oauth/token

header

Authorization: base64 encoded of integration and secret.

body

grant_type: authorization_code

code: Code from the auth response.

 

But I got the reply 

{
    "error": "invalid_grant",
    "error_description": "unsupported_grant_type"
}

 

Any idea what I’ve done wrong?

Best answer by Alex.Sakamoto

Hi Ryan,

 

Have you reviewed this article, how to get an access token with Authorization Code Grant

 

 

Invalid authentication request: The response type is not supported

Indicates that the application is not configured to use Authorization Code Grant or the response type specified in the authorization code request is not set to code. Ensure that the value of the response_type header is code.

To change the Authentication setting:

  1. Open the Apps and Keys page for your developer account.
  2. Under Apps and Integration Keys, choose the Integration Key to use, then select Actions, then Edit.
  3. Select Authorization Code Grant.

 

Alex 

View Original
Is this content helpful?

2 replies

Alex.Sakamoto
Docusign Employee
Forum|alt.badge.img+2
  • Docusign Employee
  • 5 replies
  • Answer
  • April 16, 2024

Hi Ryan,

 

Have you reviewed this article, how to get an access token with Authorization Code Grant

 

 

Invalid authentication request: The response type is not supported

Indicates that the application is not configured to use Authorization Code Grant or the response type specified in the authorization code request is not set to code. Ensure that the value of the response_type header is code.

To change the Authentication setting:

  1. Open the Apps and Keys page for your developer account.
  2. Under Apps and Integration Keys, choose the Integration Key to use, then select Actions, then Edit.
  3. Select Authorization Code Grant.

 

Alex 


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 1 reply
  • April 16, 2024

Thank you Alex,

I missing the header response_type: code. It’s working now.