Skip to content

Commit

Permalink
withhold_token for an oauth2 request to upload to s3 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpit-Sharma-USC authored Jan 26, 2023
1 parent 65d957c commit 6cfb94e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bynder_sdk/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ def fetch_token(self, code, *args, **kwargs):
*args,
**kwargs
)

def post(self, url, *args, **kwargs):
if url.startswith('https'):
kwargs['withhold_token'] = True
return super(BynderOAuth2Session, self).post(url, *args, **kwargs)

0 comments on commit 6cfb94e

Please sign in to comment.