Skip to content
Snippets Groups Projects
Commit e244e37b authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix reauth: we were hooking into the auth-proces too late

parent d6d28715
No related branches found
No related tags found
No related merge requests found
......@@ -106,10 +106,10 @@ class Proxy
if ($request->request->has('continue')) {
/** @var \SimpleSAML\Module\saml\Auth\Source\SP $as */
$as = Auth\Source::getById($state['saml:sp:AuthId'], SP::class);
$as = new \SimpleSAML\Auth\Simple($state['saml:sp:AuthId']);
// log the user out before being able to login again
return new RunnableResponse([$as, 'reauthLogout'], [$state]);
return new RunnableResponse([$as, 'login'], [$state]);
}
$template = new Template($this->config, 'saml:proxy/invalid_session.twig');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment