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
* [feat] Add REQUIRE_TOKEN to make token field optional
* [refactor] Rename REQUIRE_TOKEN to TOKEN_REQUIRED
* [test] Add test to verify if token is correctly ignored in user_identity if TOKEN_REQUIRED is False
Copy file name to clipboardExpand all lines: README.rst
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,7 @@ How to use?
133
133
'username': 'UserName',
134
134
'first_name': 'FirstName',
135
135
'last_name': 'LastName',
136
-
'token': 'Token', # Mandatory
136
+
'token': 'Token', # Mandatory, can be unrequired if TOKEN_REQUIRED is False
137
137
'groups': 'Groups', # Optional
138
138
},
139
139
'GROUPS_MAP': { # Optionally allow mapping SAML2 Groups to Django Groups
@@ -158,6 +158,7 @@ How to use?
158
158
'WANT_ASSERTIONS_SIGNED': True, # Require each assertion to be signed
159
159
'WANT_RESPONSE_SIGNED': False, # Require response to be signed
160
160
'ALLOWED_REDIRECT_HOSTS': ["https://myfrontendclient.com"] # Allowed hosts to redirect to using the ?next parameter
161
+
'TOKEN_REQUIRED': True, # Whether or not to require the token parameter in the SAML assertion
161
162
}
162
163
163
164
#. In your SAML2 SSO identity provider, set the Single-sign-on URL and Audience URI (SP Entity ID) to http://your-domain/saml2_auth/acs/
@@ -221,6 +222,8 @@ With these params your client can now authenticate with server resources.
221
222
222
223
**ACCEPTED_TIME_DIFF** Sets the accepted time diff in seconds `PySaml2 Accepted Time Diff <https://pysaml2.readthedocs.io/en/latest/howto/config.html#accepted-time-diff>`_
223
224
225
+
**TOKEN_REQUIRED** Set this to the boolean False if you don't require the token parameter in the SAML assertion.
0 commit comments