Skip to content

Commit 095f8db

Browse files
author
Roland Hedberg
committed
Better check
1 parent 6307794 commit 095f8db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/idp2/idp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ def redirect(self):
380380
return resp(self.environ, self.start_response)
381381

382382
if self.user:
383-
if _req.force_authn:
383+
if _req.force_authn is not None and \
384+
_req.force_authn.lower() == 'true':
384385
saml_msg["req_info"] = self.req_info
385386
key = self._store_request(saml_msg)
386387
return self.not_authn(key, _req.requested_authn_context)

0 commit comments

Comments
 (0)