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.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,7 @@ python setup.py install
208
208
'LOGOUT_REQUESTS_SIGNED': True, # Require each logout request to be signed
209
209
'WANT_ASSERTIONS_SIGNED': True, # Require each assertion to be signed
210
210
'WANT_RESPONSE_SIGNED': True, # Require response to be signed
211
+
'FORCE_AUTHN': False, # Forces the user to re-authenticate with each authentication request
211
212
'ACCEPTED_TIME_DIFF': None, # Accepted time difference between your server and the Identity Provider
212
213
'ALLOWED_REDIRECT_HOSTS': ["https://myfrontendclient.com"], # Allowed hosts to redirect to using the ?next parameter
213
214
'TOKEN_REQUIRED': True, # Whether or not to require the token parameter in the SAML assertion
@@ -278,6 +279,7 @@ Some of the following settings are related to how this module operates. The rest
278
279
|**LOGOUT\_REQUESTS\_SIGNED** | Set this to `False` if your provider doesn't sign each logout request. | `bool` | `True` | |
279
280
|**WANT\_ASSERTIONS\_SIGNED** | Set this to `False` if your provider doesn't sign each assertion. | `bool` | `True` | |
280
281
|**WANT\_RESPONSE\_SIGNED** | Set this to `False` if you don't want your provider to sign the response. | `bool` | `True` | |
282
+
|**FORCE\_AUTHN** | SAML2 request attribute that forces the user to re-authenticate with the Identity Provider (IdP), even if they already have an active session. | `bool` | `False` | |
281
283
|**ACCEPTED\_TIME\_DIFF** | Sets the [accepted time diff](https://pysaml2.readthedocs.io/en/latest/howto/config.html#accepted-time-diff) in seconds | `int` or `None` | `None` | |
282
284
|**ALLOWED\_REDIRECT\_HOSTS** | Allowed hosts to redirect to using the `?next=` parameter | `list` | `[]` | `['https://app.example.com', 'https://api.exmaple.com']` |
283
285
|**DISABLE\_EXCEPTION\_HANDLER** | Set this to `True` if you want to disable the exception handler. Make sure to handle the `SAMLAuthError`s and other exceptions. | `bool` | `False` | |
0 commit comments