PluginProbe
Authorizer / 2.9.8
Authorizer v2.9.8
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
← All changes | authorizer.php +34 -36 3.14.22.9.8 View file →
@@ -1,16 +1,14 @@
1 1 <?php
2 2 /**
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.14.2
7 - * Requires at least: 5.5
8 - * Requires PHP: 8.1
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
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.8
13 11 *
14 12 * Portions forked from Restricted Site Access plugin:
15 13 * http://wordpress.org/plugins/restricted-site-access/
16 14 * Portions forked from wpCAS plugin:
@@ -22,45 +20,45 @@
22 20 */
23 21
24 22 namespace Authorizer;
25 23
26 -require_once __DIR__ . '/polyfills.php';
24 +require_once dirname( __FILE__ ) . '/src/authorizer/abstract-class-static-instance.php';
27 25
28 -require_once __DIR__ . '/src/authorizer/abstract-class-singleton.php';
26 +require_once dirname( __FILE__ ) . '/src/authorizer/class-wp-plugin-authorizer.php';
29 27
30 -require_once __DIR__ . '/src/authorizer/class-wp-plugin-authorizer.php';
28 +require_once dirname( __FILE__ ) . '/src/authorizer/class-helper.php';
31 29
32 -require_once __DIR__ . '/src/authorizer/class-helper.php';
30 +require_once dirname( __FILE__ ) . '/src/authorizer/class-updates.php';
33 31
34 -require_once __DIR__ . '/src/authorizer/class-updates.php';
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';
35 39
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';
40 +require_once dirname( __FILE__ ) . '/src/authorizer/class-options.php';
43 41
44 -require_once __DIR__ . '/src/authorizer/class-options.php';
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';
45 46
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';
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';
50 50
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';
51 +require_once dirname( __FILE__ ) . '/src/authorizer/options/class-advanced.php';
56 52
57 -require_once __DIR__ . '/src/authorizer/options/class-advanced.php';
58 -
59 53 /**
60 - * Add composer libraries.
54 + * Add phpCAS library if it's not included.
55 + *
56 + * @see https://wiki.jasig.org/display/CASC/phpCAS+installation+guide
61 57 */
62 -require_once __DIR__ . '/vendor/autoload.php';
58 +if ( ! defined( 'PHPCAS_VERSION' ) ) {
59 + require_once dirname( __FILE__ ) . '/vendor/phpCAS-1.3.6/CAS.php';
60 +}
63 61
64 62 /**
65 63 * Helper function to always return the path to the plugin's entry point. Used
66 64 * when locating asset paths using plugins_url().