Skip to content

Commit cf19ac3

Browse files
committed
Fix reauth: we were hooking into the auth-proces too late
1 parent 9319eac commit cf19ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/saml/src/Controller/Proxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ public function invalidSession(Request $request): Template|Response
9898

9999
if ($request->request->has('continue')) {
100100
/** @var \SimpleSAML\Module\saml\Auth\Source\SP $as */
101-
$as = Auth\Source::getById($state['saml:sp:AuthId'], SP::class);
101+
$as = new \SimpleSAML\Auth\Simple($state['saml:sp:AuthId']);
102102

103103
// log the user out before being able to login again
104-
return $as->reauthLogout($this->config, $state);
104+
return $as->login($state);
105105
}
106106

107107
$template = new Template($this->config, 'saml:proxy/invalid_session.twig');

0 commit comments

Comments
 (0)