+ ADD keycloack.hvg.hu auth via SAML

This commit is contained in:
felegy
2025-08-28 13:40:08 +00:00
parent 1d2ee9e663
commit 696fb9b22c
5 changed files with 34 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ class AppMuPlugin
$this->remove_wp_version();
$this->cc_mime_types();
$this->two_factor_default();
$this->on_logout_redirect();
}
@@ -196,6 +197,16 @@ class AppMuPlugin
return $providers;
});
}
private function on_logout_redirect() {
add_action('wp_logout', function ()
{
if (defined('LOGOUT_REDIRECT_URL')) {
wp_redirect( LOGOUT_REDIRECT_URL );
exit;
}
});
}
}
new AppMuPlugin();