first I am not good in English but trying to explain my problem here I use c# .net framework example and assign app.config as - use my app integration key in ds_client_id and use DS_impersonated_guid from admin >users menu >edit user >next to email user guid . and use private key generated for my app but still it gives me invalid grant exception. please also explain where Key and from where their value will come.
1 Answer
The JSON Web Token (JWT) grant is an OAuth 2.0 flow that is used to grant an access token to service integrations. Each request to a DocuSign API must include a valid access token. When you use a service auth flow, your user is not going to be prompted to login to DocuSign, but you still make API calls for the user, after consent was given for the application (which is represented by the Integration Key) to do so. The example we have for C# should work for you. I'm not sure if that's how you started. I recommend you clone the git repo - https://github.com/docusign/eg-01-csharp-jwt-framework and then update the config with your IK as well as ensure that all the information is valid and consistent. "Invalid Grant" exception suggest that maybe your IK is not set correctly. There are 2 options in the "keys" page to set an IK for either flow. Make sure you have the correct checkbox checked (for implicit flow) and double check all the information.