Skip to content

Commit 344a7ad

Browse files
author
Roland Hedberg
committed
Added another way of getting authn information.
1 parent fcd34dc commit 344a7ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/saml2/authn_context/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ def match(self, requested, provided):
186186
def __getitem__(self, ref):
187187
return self.db["info"][ref]
188188

189+
def get_authn_by_accr(self, accr):
190+
_ids = self.db["key"][accr]
191+
return self[_ids[0]]
192+
189193

190194
def authn_context_factory(text):
191195
# brute force

0 commit comments

Comments
 (0)