Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit 254fa76

Browse files
committed
Should not raise StopIteration
Have to create a endpoint path to method instance map.
1 parent 436070e commit 254fa76

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/oidcendpoint/endpoint_context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ def do_authentication(self):
275275
else:
276276
self.authn_broker = None
277277

278+
self.endpoint_to_authn_method = {}
279+
for method in self.authn_broker:
280+
self.endpoint_to_authn_method[method.action] = method
281+
278282
def do_cookie_dealer(self):
279283
_conf = self.conf.get('cookie_dealer')
280284
if _conf:

src/oidcendpoint/user_authn/authn_context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def get_acr_values(self):
9797
def __iter__(self):
9898
for item in self.db.values():
9999
yield item["method"]
100-
raise StopIteration
101100

102101
def __len__(self):
103102
return len(self.db.keys())

0 commit comments

Comments
 (0)