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
Copy file name to clipboardExpand all lines: README.rst
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,15 @@ may be specified by the client - typically with the ?next= parameter.)
128
128
In the absence of a ?next= parameter, the LOGIN_REDIRECT_URL setting will be used (assuming the destination hostname
129
129
either matches the output of get_host() or is included in the SAML_ALLOWED_HOSTS setting)
130
130
131
+
Preferred sso binding
132
+
---------------------
133
+
Use the following setting to choose your preferred binding for SP initiated sso requests::
134
+
135
+
SAML_DEFAULT_BINDING
136
+
137
+
For example::
138
+
139
+
SAML_DEFAULT_BINDING = saml2.BINDING_HTTP_POST
131
140
132
141
Preferred Logout binding
133
142
------------------------
@@ -155,13 +164,36 @@ Idp's like Okta require a signed logout response to validate and logout a user.
155
164
156
165
Discovery Service
157
166
-----------------
158
-
If you want to use a SAML Discovery Service, all you need is adding:
167
+
If you want to use a SAML Discovery Service, all you need is adding::
159
168
160
169
SAML2_DISCO_URL = 'https://your.ds.example.net/'
161
170
162
171
Of course, with the real URL of your preferred Discovery Service.
163
172
164
173
174
+
Idp hinting
175
+
-----------
176
+
If the SP uses an AIM Proxy it is possible to suggest the authentication IDP by adopting the _idphint_ parameter. The name of the `idphint` parameter is default, but it can also be changed using this parameter::
177
+
178
+
SAML2_IDPHINT_PARAM = 'idphint'
179
+
180
+
This will ensure that the user will not get a possible discovery service page for the selection of the IdP to use for the SSO.
181
+
When Djagosaml2 receives an HTTP request at the resource, web path, configured for the saml2 login, it will detect the presence of the `idphint` parameter. If this is present, the authentication request will report this URL parameter within the http request relating to the SAML2 SSO binding.
0 commit comments