Skip to content

Commit 273936c

Browse files
authored
SAML Login: Respect next parameter (#12560)
* SAML Login: Respect `next` parameter When logging in with SAML, the `next` parameter is not respected like it is for other SSO providers * Add pre-wrapper * Add trailing name
1 parent 611bee0 commit 273936c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dojo/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
</style>
9999
</head>
100100
<body class="{% dojo_body_class %}">
101+
{% block pre_wrapper %}
102+
{% endblock pre_wrapper %}
101103
<div id="wrapper">
102104
{% block navigation %}
103105
<!-- Navigation -->

dojo/templates/dojo/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h3>{% trans "Login" %}</h3>
9797

9898
{% if SAML2_ENABLED is True %}
9999
<div class="col-sm-offset-1 col-sm-2">
100-
<a id="oauth-login-saml" rel="nofollow" data-method="post" href="/saml2/login" style="color: rgb(255,255,255)" class="btn btn-success" type="button">{{ SAML2_LOGIN_BUTTON_TEXT }}</a>
100+
<a id="oauth-login-saml" rel="nofollow" data-method="post" href="/saml2/login?next={{ request.GET.next }}" style="color: rgb(255,255,255)" class="btn btn-success" type="button">{{ SAML2_LOGIN_BUTTON_TEXT }}</a>
101101
</div>
102102
{% endif %}
103103
</div>

0 commit comments

Comments
 (0)