-
I want to hit Docusign's API via Kulala: ### definition of template
GET {{DOCUSIGN_BASE_URL}}/v2.1/accounts/{{DOCUSIGN_ACCOUNT_ID}}/templates
Accept: application/json
Authorization: Bearer {{$auth.token("docusign")}} This video helped me setup Kulala. My docusign config looks like this in Kulala: "docusign": {
"Acquire Automatically": false,
"Auth URL": "https://account-d.docusign.com/oauth/auth",
"Client ID": "0...",
"Client Secret": "5....",
"Expires In": 4000,
"Grant Type": "Authorization Code",
"PKCE": true,
"JWT": {
"header": {
"alg": "RS256",
"typ": "JWT"
},
"payload": {
"exp": 4000,
"iss": "0..",
"sub": "d..",
"aud": "account-d.docusign.com",
"scope": "signature impersonation"
}
},
"Redirect URL": "https://www.google.com/",
"Scope": "signature impersonation",
"Type": "JWT",
"Token URL": "https://account-d.docusign.com/oauth/token"
}, I'm able to get the code from the browser: ![]() When I enter it in Kulala it doesn't then reach out to the Should it or is that a manual step? I did try the manual step but it fails: ### access_token
POST https://account-d.docusign.com/oauth/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{DOCUSIGN_INTEGRATION_KEY}}:{{DOCUSIGN_CLIENT_SECRET}}
grant_type=authorization_code&code=eyJ0eX Error: {
"error": "invalid_request",
"error_description": "code verifier required"
} |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 33 replies
-
And I'm not sure if it is relevant here but getting this error as well:
|
Beta Was this translation helpful? Give feedback.
-
It certainly should. How do you know it does not reach out to the Token URL? Are you getting any messages? It fails with the manual step, because the request for the access token should contain fields: client_id, code, grant_type and PKCE code_verifier. (The Authorization header should not be required usually, unless it is Docusign's specifics) The Error in coroutine is a bug, will fix it and it might be affecting the flow. Let me push a fix and I will also add some logging to the intermediary auth requests, so we can see what is happening during the token request. Btw, it you put localhost or 127.0.0.1 in the |
Beta Was this translation helpful? Give feedback.
-
Pushed an update to develop. |
Beta Was this translation helpful? Give feedback.
-
If you come over to https://discord.gg/QyVQmfY4Rt, we can try debugging it in real time. |
Beta Was this translation helpful? Give feedback.
Try switching off
PKCE