Skip to content

Commit dd83abe

Browse files
ghalsethijskh
authored andcommitted
Fix invalid session error
1 parent b13db8c commit dd83abe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/saml/src/Auth/Source/SP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ public static function askForIdPChange(array &$state): RedirectResponse
912912

913913
// save the state WITHOUT a restart URL, so that we don't try an IdP-initiated login if something goes wrong
914914
$id = Auth\State::saveState($state, 'saml:proxy:invalid_idp', true);
915-
$url = Module::getModuleURL('saml/proxy/invalid_session.php');
915+
$url = Module::getModuleURL('saml/proxy/invalidSession');
916916

917917
$httpUtils = new Utils\HTTP();
918918
return $httpUtils->redirectTrustedURL($url, ['AuthState' => $id]);

modules/saml/templates/proxy/invalid_session.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{% block content %}
55
<h2>{{ 'Invalid Identity Provider'|trans }}</h2>
66
<p>{{ 'You already have a valid session with an identity provider (<em>%IDP%</em>) that is not accepted by <em>%SP%</em>. Would you like to log out from your existing session and log in again with another identity provider?'|trans({"%IDP%": entity_idp|entityDisplayName, "%SP%": entity_sp|entityDisplayName}, "app")|raw }}</p>
7-
<form method="post" action="?">
7+
<form class="pure-form" method="post" action="?">
88
<input type="hidden" name="AuthState" value="{{ AuthState|escape('html') }}">
9-
<input type="submit" name="continue" value="{{ 'Yes, continue'|trans }}">
10-
<input type="submit" name="cancel" value="{{ 'No, cancel'|trans }}">
9+
<input type="submit" class="pure-button pure-button-red" name="continue" value="{{ 'Yes, continue'|trans }}">
10+
<input type="submit" class="pure-button" name="cancel" value="{{ 'No, cancel'|trans }}">
1111
</form>
1212
{% endblock %}

0 commit comments

Comments
 (0)