Skip to content

Commit

Permalink
Attempting to add ability to include other SSL certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric van Zanten committed Jun 10, 2013
1 parent daa5b71 commit 66e1b13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flask_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def __init__(self, oauth, name, base_url,
consumer_key, consumer_secret,
request_token_params=None,
access_token_params=None,
access_token_method='GET'):
access_token_method='GET',
additional_certs=None):
self.oauth = oauth
#: the `base_url` all URLs are joined with.
self.base_url = base_url
Expand All @@ -195,6 +196,8 @@ def __init__(self, oauth, name, base_url,
self._consumer = oauth2.Consumer(self.consumer_key,
self.consumer_secret)
self._client = OAuthClient(self._consumer)
if additional_certs:
self._client.ca_certs = additional_certs

def status_okay(self, resp):
"""Given request data, checks if the status is okay."""
Expand Down

0 comments on commit 66e1b13

Please sign in to comment.