Reputation: 1
We generated JWT using docusign given private key and validated by Docusign public key in jwt.io site. It generated valid signature.
Using same signature we called Docusign demo server for access token
POST https://account-d.docusign.com/oauth/token
with
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
assertion=Signature generated
but getting error "Invalid Grant".
What could be the possible reason? If signature is already verified in jwt.io with public key, Docusign should accept the assertion value.
Upvotes: 0
Views: 234
Reputation: 49114
As documented, you also need to supply the following claims:
account-d.docusign.com
For production environments, use account.docusign.com
. Note: Do not include https:// in the aud value!signature
.See the docs and also see the DocuSign JWT code examples, the repos named eg-01-*
Ask a new question if you'd like further help.
Upvotes: 0