@mohithitsuccess
The consent is only required once per user or can be granted via a Trusted App for the integration key. You can use any redirect URI and copy the code once from the browser as you stated.
You may want to look at using the JWT instead of the Auth Code Grant, as this sounds like a system integration. This decision tree helps you to determine which type is suggested.
Thanks @mrave but I’m looking for options where I can get this code from response of an API and not through browser or of there is other better option to authenticate may be basic auth if DocuSign permits
@mohithitsuccess
I suggest you look at obtaining Admin consent for an internal application, as described here.
The call should be make from your application that you set up with a redirect URI. If you use a browser for easy set up in the demo environment the code will be delivered back to that browser instead.
Docusign does not support basic auth as this is not considered safe, only OAuth 2.0 is supported.
Thanks @mrave. I have questions regarding below
- obtaining Admin consent - So if we ask to add the app in connected apps, will this skip the step of every time sign in for getting the code through browser ?
- Redirect URL - Can we set this URL to integrated app(ESB) URL to the get code there instead of browser so that we can copy this code from query params of the set URL or is it necessary to set this as public URL ?