diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2014-08-08 18:01:48 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2014-08-08 18:03:58 +0200 |
commit | 77b12bda3df10710daf7c441512146170523f003 (patch) | |
tree | e8332c492d79e8b7482e5a5b560f14213cc8933a /service/app/bitmask_libraries/auth.py | |
parent | d3a31756c17165d4685287868f53265e49762377 (diff) |
Updated some leap components to latest version.
- Send public key to leap now works
- Fetching mail works with a recent leap provider version
- Added register to LeapAuthenticator to create a new account
Diffstat (limited to 'service/app/bitmask_libraries/auth.py')
-rw-r--r-- | service/app/bitmask_libraries/auth.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/service/app/bitmask_libraries/auth.py b/service/app/bitmask_libraries/auth.py index 4958c586..0b963587 100644 --- a/service/app/bitmask_libraries/auth.py +++ b/service/app/bitmask_libraries/auth.py @@ -20,3 +20,8 @@ class LeapAuthenticator(object): srp = LeapSecureRemotePassword(ca_bundle=which_bundle(self._provider), timeout_in_s=config.timeout_in_s) srp_session = srp.authenticate(self._provider.api_uri, credentials.user_name, credentials.password) return srp_session + + def register(self, credentials): + config = self._provider.config + srp = LeapSecureRemotePassword(ca_bundle=which_bundle(self._provider), timeout_in_s=config.timeout_in_s) + srp.register(self._provider.api_uri, credentials.user_name, credentials.password) |