Skip to content

Commit

Permalink
Adding ca_certs for make_client method
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric van Zanten committed Jun 10, 2013
1 parent 66e1b13 commit b923b9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flask_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def __init__(self, oauth, name, base_url,
self.request_token_params = request_token_params or {}
self.access_token_params = access_token_params or {}
self.access_token_method = access_token_method
self.additional_certs = additional_certs
self._consumer = oauth2.Consumer(self.consumer_key,
self.consumer_secret)
self._client = OAuthClient(self._consumer)
Expand Down Expand Up @@ -239,7 +240,10 @@ def make_client(self, token=None):
Usually you don't have to do that but use the :meth:`request`
method instead.
"""
return oauth2.Client(self._consumer, self.get_request_token(token))
client = oauth2.Client(self._consumer, self.get_request_token(token))
if self.additional_certs:
client.ca_certs = self.additional_certs
return client

def request(self, url, data="", headers=None, format='urlencoded',
method='GET', content_type=None, token=None):
Expand Down

0 comments on commit b923b9f

Please sign in to comment.