Skip to content

Commit

Permalink
Merge pull request #114 from humanmade/issue-1265-remove-wordpress-ss…
Browse files Browse the repository at this point in the history
…o-option

Remove WordPress as an SSO option
  • Loading branch information
mikelittle authored Dec 19, 2022
2 parents bc82438 + fe905ff commit b7eb3e7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 117 deletions.
9 changes: 3 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,17 @@
"autoload": {
"files": [
"inc/namespace.php",
"inc/saml/namespace.php",
"inc/wordpress/namespace.php"
"inc/saml/namespace.php"
]
},
"require": {
"php": ">=7.1",
"humanmade/wp-simple-saml": "~0.4.3",
"humanmade/delegated-oauth": "^1.0.5"
"humanmade/wp-simple-saml": "~0.4.3"
},
"extra": {
"altis": {
"install-overrides": [
"humanmade/wp-simple-saml",
"humanmade/delegated-oauth"
"humanmade/wp-simple-saml"
]
}
}
Expand Down
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Once the CMS has a user record in the database, the user's session is authorized
Supported authorization providers are:

* [SAML 2.0](./saml-2-0.md)
* [WordPress](./wordpress.md)

## Hiding native login

Expand Down
26 changes: 0 additions & 26 deletions docs/wordpress.md

This file was deleted.

9 changes: 1 addition & 8 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ function bootstrap() {
if ( $config['saml'] ) {
SAML\bootstrap();
}
if ( $config['wordpress'] ) {
WordPress\bootstrap();
}

add_action( 'login_form', __NAMESPACE__ . '\\output_sso_buttons' );
}
Expand All @@ -35,7 +32,7 @@ function bootstrap() {
*/
function is_sso_active() : bool {
$config = Altis\get_config()['modules']['sso'];
if ( $config['saml'] || $config['wordpress'] ) {
if ( $config['saml'] ) {
return true;
}
return false;
Expand Down Expand Up @@ -67,10 +64,6 @@ function output_sso_buttons() : void {
<?php if ( $config['saml'] ) : ?>
<?php SAML\render_login_link() ?>
<?php endif; ?>

<?php if ( $config['wordpress'] ) : ?>
<?php WordPress\render_login_link() ?>
<?php endif; ?>
</div>
<style>
#loginform {
Expand Down
75 changes: 0 additions & 75 deletions inc/wordpress/namespace.php

This file was deleted.

1 change: 0 additions & 1 deletion load.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
$default_settings = [
'enabled' => true,
'saml' => false,
'wordpress' => false,
'hide_native' => false,
];
$options = [
Expand Down

0 comments on commit b7eb3e7

Please sign in to comment.