Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement JWT authentication #118 #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Implement JWT authentication #118 #1

wants to merge 8 commits into from

Conversation

aisipos
Copy link

@aisipos aisipos commented Aug 11, 2023

Support OAuth JWT grant authentication, as defined here:
https://developers.docusign.com/platform/auth/jwt/jwt-get-token/

Client instances will need to be passed several new configuration variables to support this:

  • private_key (in textual PEM format)
  • user_id
  • integration_key
  • audience
  • base_url

If these values are not provided, client instances will fall back to the prior behavior, of using either OAuth2 password grant or username and password authentication.

If these values are provided, client instances for each request will request a new access token using the new _get_access_token method, then use that when doing the actual Docusign REST API request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants