Skip to content

Commit 7d2db68

Browse files
committed
Merge pull request #36 from y-trobinso/patch-2
Fix a code example that does not work
2 parents c640634 + 83a27ea commit 7d2db68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)