| @@ -1,14 +1,16 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Plugin Name: Authorizer | |
| 4 | - * Description: Authorizer limits login attempts, restricts access to specified users, and authenticates against external sources (e.g., Google, LDAP, or CAS). | |
| 5 | - * Author: Paul Ryan <prar@hawaii.edu> | |
| 6 | - * Plugin URI: https://github.com/uhm-coe/authorizer | |
| 7 | - * Text Domain: authorizer | |
| 8 | - * Domain Path: /languages | |
| 9 | - * License: GPL2 | |
| 10 | - * Version: 2.9.0 | |
| 3 | + * Plugin Name: Authorizer | |
| 4 | + * Plugin URI: https://github.com/uhm-coe/authorizer | |
| 5 | + * Description: Authorizer limits login attempts, restricts access to specified users, and authenticates against external sources (e.g., OAuth2, Google, LDAP, or CAS). | |
| 6 | + * Version: 3.13.0 | |
| 7 | + * Requires at least: 5.5 | |
| 8 | + * Requires PHP: 7.4 | |
| 9 | + * Author: Paul Ryan <prar@hawaii.edu> | |
| 10 | + * License: GPL v2 or later | |
| 11 | + * License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
| 12 | + * Text Domain: authorizer | |
| 11 | 13 | * |
| 12 | 14 | * Portions forked from Restricted Site Access plugin: |
| 13 | 15 | * http://wordpress.org/plugins/restricted-site-access/ |
| 14 | 16 | * Portions forked from wpCAS plugin: |
| @@ -20,45 +22,45 @@ | ||
| 20 | 22 | */ |
| 21 | 23 | |
| 22 | 24 | namespace Authorizer; |
| 23 | 25 | |
| 24 | -require_once dirname( __FILE__ ) . '/src/authorizer/abstract-class-static-instance.php'; | |
| 26 | +require_once __DIR__ . '/polyfills.php'; | |
| 25 | 27 | |
| 26 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-wp-plugin-authorizer.php'; | |
| 28 | +require_once __DIR__ . '/src/authorizer/abstract-class-singleton.php'; | |
| 27 | 29 | |
| 28 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-helper.php'; | |
| 30 | +require_once __DIR__ . '/src/authorizer/class-wp-plugin-authorizer.php'; | |
| 29 | 31 | |
| 30 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-updates.php'; | |
| 32 | +require_once __DIR__ . '/src/authorizer/class-helper.php'; | |
| 31 | 33 | |
| 32 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-authentication.php'; | |
| 33 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-authorization.php'; | |
| 34 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-login-form.php'; | |
| 35 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-dashboard-widget.php'; | |
| 36 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-ajax-endpoints.php'; | |
| 37 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-sync-userdata.php'; | |
| 38 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-admin-page.php'; | |
| 34 | +require_once __DIR__ . '/src/authorizer/class-updates.php'; | |
| 39 | 35 | |
| 40 | -require_once dirname( __FILE__ ) . '/src/authorizer/class-options.php'; | |
| 36 | +require_once __DIR__ . '/src/authorizer/class-authentication.php'; | |
| 37 | +require_once __DIR__ . '/src/authorizer/class-authorization.php'; | |
| 38 | +require_once __DIR__ . '/src/authorizer/class-login-form.php'; | |
| 39 | +require_once __DIR__ . '/src/authorizer/class-dashboard-widget.php'; | |
| 40 | +require_once __DIR__ . '/src/authorizer/class-ajax-endpoints.php'; | |
| 41 | +require_once __DIR__ . '/src/authorizer/class-sync-userdata.php'; | |
| 42 | +require_once __DIR__ . '/src/authorizer/class-admin-page.php'; | |
| 41 | 43 | |
| 42 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/class-access-lists.php'; | |
| 43 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/class-login-access.php'; | |
| 44 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/class-public-access.php'; | |
| 45 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/class-external.php'; | |
| 44 | +require_once __DIR__ . '/src/authorizer/class-options.php'; | |
| 46 | 45 | |
| 47 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-google.php'; | |
| 48 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-cas.php'; | |
| 49 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-ldap.php'; | |
| 46 | +require_once __DIR__ . '/src/authorizer/options/class-access-lists.php'; | |
| 47 | +require_once __DIR__ . '/src/authorizer/options/class-login-access.php'; | |
| 48 | +require_once __DIR__ . '/src/authorizer/options/class-public-access.php'; | |
| 49 | +require_once __DIR__ . '/src/authorizer/options/class-external.php'; | |
| 50 | 50 | |
| 51 | -require_once dirname( __FILE__ ) . '/src/authorizer/options/class-advanced.php'; | |
| 51 | +require_once __DIR__ . '/src/authorizer/options/external/class-oauth2.php'; | |
| 52 | +require_once __DIR__ . '/src/authorizer/options/external/class-google.php'; | |
| 53 | +require_once __DIR__ . '/src/authorizer/options/external/class-cas.php'; | |
| 54 | +require_once __DIR__ . '/src/authorizer/options/external/class-ldap.php'; | |
| 55 | +require_once __DIR__ . '/src/authorizer/options/external/class-oidc.php'; | |
| 52 | 56 | |
| 57 | +require_once __DIR__ . '/src/authorizer/options/class-advanced.php'; | |
| 58 | + | |
| 53 | 59 | /** |
| 54 | - * Add phpCAS library if it's not included. | |
| 55 | - * | |
| 56 | - * @see https://wiki.jasig.org/display/CASC/phpCAS+installation+guide | |
| 60 | + * Add composer libraries. | |
| 57 | 61 | */ |
| 58 | -if ( ! defined( 'PHPCAS_VERSION' ) ) { | |
| 59 | - require_once dirname( __FILE__ ) . '/vendor/phpCAS-1.3.6/CAS.php'; | |
| 60 | -} | |
| 62 | +require_once __DIR__ . '/vendor/autoload.php'; | |
| 61 | 63 | |
| 62 | 64 | /** |
| 63 | 65 | * Helper function to always return the path to the plugin's entry point. Used |
| 64 | 66 | * when locating asset paths using plugins_url(). |