summaryrefslogtreecommitdiff
path: root/src/leap/bonafide/service.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2015-12-18 02:00:58 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-02-15 22:00:52 -0400
commitef495728c961cbed727a2eb53d31f21612a55621 (patch)
treea3f1db543926dfa2156e4d28b7334c68e48a7598 /src/leap/bonafide/service.py
parente8c3d389a734350661cdd1fcf6db607f318e75e8 (diff)
provider service bootstrap and autodiscovery
Diffstat (limited to 'src/leap/bonafide/service.py')
-rw-r--r--src/leap/bonafide/service.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/bonafide/service.py b/src/leap/bonafide/service.py
index 468721b..bdbf729 100644
--- a/src/leap/bonafide/service.py
+++ b/src/leap/bonafide/service.py
@@ -25,6 +25,7 @@ from leap.bonafide._protocol import BonafideProtocol
from twisted.application import service
from twisted.internet import defer
+from twisted.python import log
class BonafideService(service.Service):
@@ -63,6 +64,10 @@ class BonafideService(service.Service):
this_hook, username=username, password=password)
def notify_bonafide_auth_hook(result):
+ if not result:
+ log.msg("Authentication hook did not return anything")
+ return
+
this_hook = 'on_bonafide_auth'
token, uuid = result
hooked_service = self.get_hooked_service(this_hook)