Added another way of getting authn information.

This commit is contained in:
Roland Hedberg
2014-04-25 13:27:56 +02:00
parent fcd34dcaa0
commit 344a7ad183

View File

@@ -186,6 +186,10 @@ class AuthnBroker(object):
def __getitem__(self, ref):
return self.db["info"][ref]
def get_authn_by_accr(self, accr):
_ids = self.db["key"][accr]
return self[_ids[0]]
def authn_context_factory(text):
# brute force