docusign-esign-java-client icon indicating copy to clipboard operation
docusign-esign-java-client copied to clipboard

Missing feature: generate access token using refresh token

Open davidsubskribe opened this issue 4 years ago • 6 comments

Hi,

I realize this is more a feature request than an issue, but the missing feature forced us to write a HTTP client to call the DocuSign REST API directly (which IMHO defeats the purpose of having an SDK client 😅).

The current ApiClient class supports generateAccessToken() which only supports the initial flow of using grant_type: authorization_code and asking user for consent. After the initial consent, I would expect users to not have to grant consent and be redirected each time the current access token expires (which only lasts up to 8 hours).

Please let us know if this feature is already in the works 🙂.

Thank you.

davidsubskribe avatar Oct 21 '21 18:10 davidsubskribe

@davidsubskribe this is something we knew we had to do but it never got prioritized until recently. There is an internal ticket to add it to Java SDK as well as to all our other official SDKs. @jglassenberg might be able to talk more about that.

mmallis87 avatar Apr 21 '22 23:04 mmallis87

@davidsubskribe Thanks for sharing this feedback. This feature has been of interest for us, but we don't have an ETA to implement it at this time.

jglassenberg avatar Apr 22 '22 23:04 jglassenberg

This is a must have for oauth so that the user doesn't have to login everytime an accessToken Expires.

Any update on timeline for this one?

prowave avatar Jun 13 '24 13:06 prowave

There is a PR for this just waiting for review and merging.

https://github.com/docusign/docusign-esign-java-client/pull/202

prowave avatar Jun 13 '24 16:06 prowave