Skip to content

Commit 54d88b0

Browse files
committed
Implemented BACKLOG-1081 - Improved error message when user loses session (possible due to third party cookies not being allowed by the browser
1 parent cf52347 commit 54d88b0

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

application/modules/Authentication/Controller/ServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public function consumeAssertionAction()
3939
$application->handleExceptionWithFeedback($e,
4040
'/authentication/feedback/vomembershiprequired');
4141
}
42+
catch (EngineBlock_Corto_Module_Services_SessionLostException $e) {
43+
$application->handleExceptionWithFeedback($e,
44+
'/authentication/feedback/session-lost');
45+
}
4246
catch (EngineBlock_Corto_Module_Bindings_UnableToReceiveMessageException $e) {
4347
$application->handleExceptionWithFeedback($e,
4448
'/authentication/feedback/unable-to-receive-message');

languages/en.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
'error_session_lost' => 'Error - your session was lost..',
218218
'error_session_lost_desc' => '<p>
219219
Somewhere along the way, your session with us was lost. <br />
220-
Maybe you have cookies disabled? <br />
220+
Most likely your browser privacy or security settings prevented the cookie to be set? <br />
221221
Please go back and try again.
222222
<br /><br />
223223
</p>',

languages/nl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
'error_session_lost' => 'Error - Uw sessie is verloren gegaan..',
217217
'error_session_lost_desc' => '<p>
218218
Uw sessie is ergens verloren gegaan.<br />
219-
Misschien heeft u uw cookies uitgezet?<br />
219+
Waarschijnlijk mocht de cookie niet worden gezet door de strikte privacy configuratie van uw browser?<br />
220220
Ga alstublieft terug en probeer het opnieuw.
221221
<br /><br />
222222
</p>',

library/EngineBlock/Corto/ProxyServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ public function getReceivedRequestFromResponse($id)
930930
// Check the session for a AuthnRequest with the given ID
931931
// Expect to get back an AuthnRequest issued by EngineBlock and destined for the IdP
932932
if (!$id || !isset($_SESSION[$id])) {
933-
throw new EngineBlock_Corto_ProxyServer_Exception(
933+
throw new EngineBlock_Corto_Module_Services_SessionLostException(
934934
"Trying to find a AuthnRequest (we made and sent) with id '$id' but it is not known in this session? ".
935935
"This could be an unsolicited Response (which we do not support) but more likely the user lost their session",
936936
EngineBlock_Corto_ProxyServer_Exception::CODE_NOTICE

0 commit comments

Comments
 (0)