Skip to content

Commit 75942ad

Browse files
committed
Add improved session-handling for authorization and callback methods, to improve failed sessions in some cases
1 parent 732d9b0 commit 75942ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/controllers/AuthController.php

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function actionConnect(): ?Response
6161

6262
public function actionCallback(): ?Response
6363
{
64+
// Restore the session data that we saved before authorization redirection from the cache back to session
65+
Session::restoreSession($this->request->getParam('state'));
66+
6467
// Get both the origin (failure) and redirect (success) URLs
6568
$origin = Session::get('origin');
6669
$redirect = Session::get('redirect');

0 commit comments

Comments
 (0)