+ ADD keycloack.hvg.hu auth via SAML
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,6 +25,7 @@ web/.htaccess
|
|||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
*.env
|
*.env
|
||||||
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
!.envrc
|
!.envrc
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,8 @@
|
|||||||
"wpackagist-plugin/wp-api-swaggerui": "^1.2",
|
"wpackagist-plugin/wp-api-swaggerui": "^1.2",
|
||||||
"wpackagist-plugin/cloudflare": "^4.12",
|
"wpackagist-plugin/cloudflare": "^4.12",
|
||||||
"wpackagist-plugin/menu-image": "^3.13",
|
"wpackagist-plugin/menu-image": "^3.13",
|
||||||
"wpackagist-plugin/code-snippets": "^3.6"
|
"wpackagist-plugin/code-snippets": "^3.6",
|
||||||
|
"wpackagist-plugin/saml-sso-wp-single-sign-on": "^1.4"
|
||||||
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|||||||
20
composer.lock
generated
20
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "1ff66c5f617ebae9a7e51e2035af2260",
|
"content-hash": "4d40ac4d8a55624c5dec818326c4321d",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "aws/aws-crt-php",
|
"name": "aws/aws-crt-php",
|
||||||
@@ -2090,6 +2090,24 @@
|
|||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"homepage": "https://wordpress.org/plugins/menu-image/"
|
"homepage": "https://wordpress.org/plugins/menu-image/"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "wpackagist-plugin/saml-sso-wp-single-sign-on",
|
||||||
|
"version": "1.4.8",
|
||||||
|
"source": {
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://plugins.svn.wordpress.org/saml-sso-wp-single-sign-on/",
|
||||||
|
"reference": "tags/1.4.8"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://downloads.wordpress.org/plugin/saml-sso-wp-single-sign-on.1.4.8.zip"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"composer/installers": "^1.0 || ^2.0"
|
||||||
|
},
|
||||||
|
"type": "wordpress-plugin",
|
||||||
|
"homepage": "https://wordpress.org/plugins/saml-sso-wp-single-sign-on/"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "wpackagist-plugin/two-factor",
|
"name": "wpackagist-plugin/two-factor",
|
||||||
"version": "0.14.0",
|
"version": "0.14.0",
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ array_push($env_keys, 'CLOUDFLARE_EMAIL');
|
|||||||
array_push($env_keys, 'WP_CF_ACCESS_AUTH_DOMAIN');
|
array_push($env_keys, 'WP_CF_ACCESS_AUTH_DOMAIN');
|
||||||
array_push($env_keys, 'WP_CF_ACCESS_JWT_AUD');
|
array_push($env_keys, 'WP_CF_ACCESS_JWT_AUD');
|
||||||
array_push($env_keys, 'WP_CF_ACCESS_REDIRECT_LOGIN');
|
array_push($env_keys, 'WP_CF_ACCESS_REDIRECT_LOGIN');
|
||||||
|
array_push($env_keys, 'LOGOUT_REDIRECT_URL');
|
||||||
###
|
###
|
||||||
|
|
||||||
# App Secret environment keys
|
# App Secret environment keys
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class AppMuPlugin
|
|||||||
$this->remove_wp_version();
|
$this->remove_wp_version();
|
||||||
$this->cc_mime_types();
|
$this->cc_mime_types();
|
||||||
$this->two_factor_default();
|
$this->two_factor_default();
|
||||||
|
$this->on_logout_redirect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -196,6 +197,16 @@ class AppMuPlugin
|
|||||||
return $providers;
|
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();
|
new AppMuPlugin();
|
||||||
|
|||||||
Reference in New Issue
Block a user