We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d9c975 commit 878494eCopy full SHA for 878494e
djangosaml2/views.py
@@ -339,11 +339,10 @@ def post(self,
339
post_authenticated.send_robust(sender=user, session_info=session_info)
340
self.customize_session(user, session_info)
341
342
+ relay_state = self.build_relay_state()
343
custom_redirect_url = self.custom_redirect(user, relay_state)
344
if custom_redirect_url:
345
return HttpResponseRedirect(custom_redirect_url)
-
346
- relay_state = self.build_relay_state()
347
if not is_safe_url_compat(url=relay_state, allowed_hosts={self.request.get_host()}):
348
relay_state = settings.LOGIN_REDIRECT_URL
349
logger.debug('Redirecting to the RelayState: %s', relay_state)
0 commit comments