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

Commit e6bbcd1

Browse files
committed
Should allow for no authentication methods being defined and
authentication methods that don't use redirect.
1 parent 1f3e0cc commit e6bbcd1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/oidcendpoint/endpoint_context.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,14 @@ def do_authentication(self):
273273
if _conf:
274274
self.authn_broker = populate_authn_broker(_conf, self, self.template_handler)
275275
else:
276-
self.authn_broker = None
276+
self.authn_broker = {}
277277

278278
self.endpoint_to_authn_method = {}
279279
for method in self.authn_broker:
280-
self.endpoint_to_authn_method[method.action] = method
280+
try:
281+
self.endpoint_to_authn_method[method.action] = method
282+
except AttributeError:
283+
pass
281284

282285
def do_cookie_dealer(self):
283286
_conf = self.conf.get('cookie_dealer')

0 commit comments

Comments
 (0)