+ ADD keycloack.hvg.hu auth via SAML
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user