Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions veristack/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def close(self):
class Client(_OAuth2Session):
"""Client for communicating to Veristack."""

def __init__(self, *args, **kwargs):
def __init__(self, *args, verify=True, **kwargs):
"""Instantiate Client."""
self.client_secret = kwargs.pop('client_secret', None)
if self.client_secret is None and 'token' not in kwargs:
Expand All @@ -432,10 +432,10 @@ def __init__(self, *args, **kwargs):
self.uid = kwargs.pop('uid')
self.refresh_token_callback = kwargs.pop('refresh_token_callback',
None)
self.verify = kwargs.pop('verify', True)
super(Client, self).__init__(
*args[2:], client=JWTApplicationClient(kwargs['client_id']),
**kwargs)
self.verify = verify
# Set this after the super() call, as our superclass's superclass sets
# this indiscriminately to True.
if not self.verify:
Expand Down