diff options
author | kali <kali@leap.se> | 2012-11-09 11:21:40 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-11-09 11:21:40 +0900 |
commit | 8118056a244ca74d16380ad26a70e3da40e7e401 (patch) | |
tree | 4363948d180a667a545807b99b2d3199e30b5950 /src/leap/base/auth.py | |
parent | b84007d8fec8c949ba4ac1d26695c710a210d797 (diff) |
connect page merged into regvalidation.
Flow nearly working with fake provider, except for authentication.
Diffstat (limited to 'src/leap/base/auth.py')
-rw-r--r-- | src/leap/base/auth.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/base/auth.py b/src/leap/base/auth.py index 9ee159e7..f1b618ba 100644 --- a/src/leap/base/auth.py +++ b/src/leap/base/auth.py @@ -37,6 +37,7 @@ class LeapSRPRegister(object): schema="https", provider=None, port=None, + verify=True, register_path="1/users.json", method="POST", fetcher=requests, @@ -47,6 +48,7 @@ class LeapSRPRegister(object): self.schema = schema self.provider = provider self.port = port + self.verify = verify self.register_path = register_path self.method = method self.fetcher = fetcher @@ -98,7 +100,8 @@ class LeapSRPRegister(object): # XXX get self.method req = self.session.post( uri, data=user_data, - timeout=SIGNUP_TIMEOUT) + timeout=SIGNUP_TIMEOUT, + verify=self.verify) logger.debug(req) logger.debug('user_data: %s', user_data) #logger.debug('response: %s', req.text) |