Skip to content

Commit

Permalink
Add oauth webhook scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Delabye committed Sep 29, 2023
1 parent bd546c7 commit c3d0620
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ about future releases, check `milestones`_ and :doc:`/about/vision`.
0.13 (unreleased)
-----------------

- Nothing changed yet
- Add oauth scopes for webhooks


0.12 (2022-12-05)
Expand Down
4 changes: 3 additions & 1 deletion django_adobesign/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def get_scopes(account_type):
'user_login:{}',
'agreement_send:{}',
'agreement_read:{}',
'agreement_write:{}')]
'agreement_write:{}',
'webhook_write:{}',
'webhook_read:{}')]

def create_token(self, code, application_secret):
response = self.oauth_session.fetch_token(
Expand Down
2 changes: 2 additions & 0 deletions django_adobesign/tests/test_adobe_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def test_oauth_get_scopes():
assert 'agreement_send:account' in scopes
assert 'agreement_read:account' in scopes
assert 'agreement_write:account' in scopes
assert 'webhook_write:account' in scopes
assert 'webhook_read:account' in scopes


def test_oauth_create(mocker, adobe_oauth_session):
Expand Down

0 comments on commit c3d0620

Please sign in to comment.