Skip to content

Commit 83a27ea

Browse files
committed
Fix a code example that does not work
The current ACS example only redirects if a user is not authenticated. This fixes it. Verified it works in my own SAML implementation for Tornado using python-saml.
1 parent c640634 commit 83a27ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ auth = OneLogin_Saml2_Auth(req)
483483
auth.process_response()
484484
errors = auth.get_errors()
485485
if not errors:
486-
if not auth.is_authenticated():
486+
if auth.is_authenticated():
487487
request.session['samlUserdata'] = auth.get_attributes()
488488
if 'RelayState' in req['post_data'] and
489489
OneLogin_Saml2_Utils.get_self_url(req) != req['post_data']['RelayState']:

0 commit comments

Comments
 (0)