Description
It seems like LOGIN_REDIRECT_URL
overrides ACS_DEFAULT_REDIRECT_URL
setting.
On accessing saml2/login/
endpoint with no next
parameter, the next_path
defaults to LOGIN_REDIRECT_URL
djangosaml2/djangosaml2/views.py
Lines 135 to 137 in 02f4a19
djangosaml2/djangosaml2/views.py
Lines 114 to 126 in 02f4a19
This next_path
is used to set value of relay_state
here:
djangosaml2/djangosaml2/views.py
Lines 318 to 331 in 02f4a19
Now in post method of AssertionConsumerServiceView
, value of ACS_DEFAULT_REDIRECT_URL
is retrieved, but that's get overridden by the RelayState
parameter of POST request, which was set in saml2/login
if I am not wrong.
djangosaml2/djangosaml2/views.py
Lines 500 to 511 in 02f4a19
Hence ACS_DEFAULT_REDIRECT_URL
has no result in this scenario.