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

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

parent 7dcc4951
No related branches found
No related tags found
No related merge requests found
......@@ -98,10 +98,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 $as->reauthLogout($this->config, $state);
return $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.
Finish editing this message first!
Please register or to comment