Skip to content

Commit

Permalink
DocuSign: configurable authentication endpoint (#75)
Browse files Browse the repository at this point in the history
* DocuSign: configurable authentication endpoint

* eslint
  • Loading branch information
vtalas authored Apr 9, 2024
1 parent bf044b9 commit 9e5ca68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/appmixer/docusign/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ module.exports = {
},

scopeDelimiter: ' ',
authUrl: 'https://account-d.docusign.com/oauth/auth',

authUrl: (context) => {
return context.config.production ?
'https://account.docusign.com/oauth/auth' :
'https://account-d.docusign.com/oauth/auth';
},

requestAccessToken: async context => {

Expand Down
5 changes: 4 additions & 1 deletion src/appmixer/docusign/bundle.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "appmixer.docusign",
"version": "1.0.1",
"version": "1.0.2",
"changelog": {
"1.0.0": [
"Initial version"
],
"1.0.1": [
"Updated the DocuSign icon and added input validation."
],
"1.0.2": [
"Authentication - make the authentication endpoint configurable: \n `production: true` - use the account.docusign.com/oauth/auth endpoint \n `production: false` - use the account-d.docusign.com/oauth/auth endpoint"
]
}
}

0 comments on commit 9e5ca68

Please sign in to comment.