File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,11 @@ case of a problem, much harder to debug.
26
26
27
27
Following that pattern then I should import the application with
28
28
import saml but unfortunately that module name is already used in pysaml2.
29
+
30
+ ** saml2.response.UnsolicitedResponse: Unsolicited response**
31
+
32
+ If you are experiencing issues with unsolicited requests this is due to the fact that
33
+ cookies not being sent when using the HTTP-POST binding. You have to configure samesite
34
+ djangosaml2 middleware (see setup documentation) and also consider upgrading
35
+ to Django 3.1 or higher.
36
+ If you can't do that, configure "allow_unsolicited" to True in pySAML2 configuration.
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ You can even configure the SAML cookie name as follows::
71
71
SAML_SESSION_COOKIE_NAME = 'saml_session'
72
72
73
73
Remember that in your browser "SameSite=None" attribute MUST also
74
- have the "Secure" attribute, which is required in order to use "SameSite=None".
74
+ have the "Secure" attribute, which is required in order to use "SameSite=None"::
75
75
76
76
SESSION_COOKIE_SECURE = True
77
77
@@ -80,7 +80,7 @@ have the "Secure" attribute, which is required in order to use "SameSite=None".
80
80
djangosaml2 will attempt to set the ``SameSite `` attribute of the SAML session cookie to ``None `` so that it can be
81
81
used in cross-site requests, but this is only possible with Django 3.1 or higher. If you are experiencing issues with
82
82
unsolicited requests or cookies not being sent (particularly when using the HTTP-POST binding), consider upgrading
83
- to Django 3.1 or higher.
83
+ to Django 3.1 or higher. If you can't do that, configure "allow_unsolicited" to True in pySAML2 configuration.
84
84
85
85
Authentication backend
86
86
======================
You can’t perform that action at this time.
0 commit comments