Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove WordPress as an SSO option #114

Merged
merged 2 commits into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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