From 77b12bda3df10710daf7c441512146170523f003 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Fri, 8 Aug 2014 18:01:48 +0200 Subject: 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 --- service/app/bitmask_libraries/auth.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'service/app/bitmask_libraries/auth.py') 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) -- cgit v1.2.3