Add ping method to auth engines to determine if they are reachable

This commit is contained in:
Joseph Schorr 2017-05-10 20:55:10 -07:00
parent a6ea16abc5
commit 0dfb6806e3
6 changed files with 67 additions and 0 deletions

View file

@ -150,6 +150,10 @@ class UserAuthentication(object):
return data.get('password', encrypted)
def ping(self):
""" Returns whether the authentication engine is reachable and working. """
return self.state.ping()
@property
def federated_service(self):
""" Returns the name of the federated service for the auth system. If none, should return None.