You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print"Error when processing SAML Response: %s"% (', '.join(errors))
663
+
print("Error when processing SAML Response: %s"% (', '.join(errors)))
664
664
```
665
665
666
666
The SAML response is processed and then checked that there are no errors. It also verifies that the user is authenticated and stored the userdata in session.
@@ -697,9 +697,9 @@ The following code is equivalent:
697
697
698
698
```python
699
699
attributes = auth.get_attributes();
700
-
printattributes['cn']
700
+
print(attributes['cn'])
701
701
702
-
printauth.get_attribute('cn')
702
+
print(auth.get_attribute('cn'))
703
703
```
704
704
705
705
Before trying to get an attribute, check that the user is authenticated. If the user isn't authenticated, an empty dict will be returned. For example, if we call to get_attributes before a auth.process_response, the get_attributes() will return an empty dict.
@@ -717,9 +717,9 @@ if len(errors) == 0:
717
717
if url isnotNone:
718
718
return redirect(url)
719
719
else:
720
-
print"Sucessfully Logged out"
720
+
print("Sucessfully Logged out")
721
721
else:
722
-
print"Error when processing SLO: %s"% (', '.join(errors))
722
+
print("Error when processing SLO: %s"% (', '.join(errors)))
723
723
```
724
724
725
725
If the SLS endpoints receives a Logout Response, the response is validated and the session could be closed, using the callback.
@@ -848,9 +848,9 @@ elif 'sls' in request.args: # Single
0 commit comments