Skip to content

Commit 7331ae9

Browse files
committed
feat: SAML_DEFAULT_BINDING in README
1 parent 46b85eb commit 7331ae9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@ may be specified by the client - typically with the ?next= parameter.)
128128
In the absence of a ?next= parameter, the LOGIN_REDIRECT_URL setting will be used (assuming the destination hostname
129129
either matches the output of get_host() or is included in the SAML_ALLOWED_HOSTS setting)
130130

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
131140

132141
Preferred Logout binding
133142
------------------------

djangosaml2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def get(self, request, *args, **kwargs):
287287
logger.error(f'TemplateDoesNotExist: {e}')
288288

289289
if not http_response:
290-
# use the html provided by pysaml2 if no template was specified or it didn't exist
290+
# use the html provided by pysaml2 if no template was specified or it doesn't exist
291291
try:
292292
session_id, result = client.prepare_for_authenticate(
293293
entityid=selected_idp, relay_state=next_path,

0 commit comments

Comments
 (0)