docusign / docusign-esign-java-client

The Official Docusign Java Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://javadoc.io/doc/com.docusign/docusign-esign-java/latest/index.html
MIT License
105 stars 96 forks source link

Missing feature: generate access token using refresh token #212

Open davidsubskribe opened 2 years ago

davidsubskribe commented 2 years ago

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.

mmallis87 commented 2 years ago

@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.

jglassenberg commented 2 years ago

@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.

prowave commented 2 months ago

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 commented 2 months ago

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

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