summaryrefslogtreecommitdiff
path: root/service/pixelated/register.py
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2016-08-29 18:23:14 -0300
committerTulio Casagrande <tcasagra@thoughtworks.com>2016-08-29 18:59:53 -0300
commitc1a35317fe4ebb82bf7d24dc5d8c171d29c9c501 (patch)
tree74878eaccf9ddce91b33284cd8ed5c67910a219a /service/pixelated/register.py
parent840ade44e23add85fbe97b79ee249fc7c1e6adf2 (diff)
[#765] Move combined_ca_bundle to UA initialization
With this change we don't have to create the combined_ca_bundle for every user at every login. To support this change, we started migrating away from the LeapCertificate class that was making the LeapProvider setup more brittle
Diffstat (limited to 'service/pixelated/register.py')
-rw-r--r--service/pixelated/register.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/register.py b/service/pixelated/register.py
index 93b55872..eaa80937 100644
--- a/service/pixelated/register.py
+++ b/service/pixelated/register.py
@@ -53,8 +53,8 @@ def register(
LeapCertificate.set_cert_and_fingerprint(provider_cert, provider_cert_fingerprint)
config = LeapConfig(leap_home=leap_home)
provider = LeapProvider(server_name)
- LeapCertificate(provider).setup_ca_bundle()
- srp_auth = SRPAuth(provider.api_uri, LeapCertificate(provider).provider_api_cert)
+ provider.setup_ca_bundle()
+ srp_auth = SRPAuth(provider.api_uri, provider.provider_api_cert)
if srp_auth.register(username, password):
LeapSessionFactory(provider).create(username, password)