PluginProbe
Authorizer / 3.9.1
Authorizer v3.9.1
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 +35 -34 2.9.23.9.1 View file →
@@ -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.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.9.1
7 + * Requires at least: 4.9
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,44 @@
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';
52 55
56 +require_once __DIR__ . '/src/authorizer/options/class-advanced.php';
57 +
53 58 /**
54 - * Add phpCAS library if it's not included.
55 - *
56 - * @see https://wiki.jasig.org/display/CASC/phpCAS+installation+guide
59 + * Add composer libraries.
57 60 */
58 -if ( ! defined( 'PHPCAS_VERSION' ) ) {
59 - require_once dirname( __FILE__ ) . '/vendor/phpCAS-1.3.6/CAS.php';
60 -}
61 +require_once __DIR__ . '/vendor/autoload.php';
61 62
62 63 /**
63 64 * Helper function to always return the path to the plugin's entry point. Used
64 65 * when locating asset paths using plugins_url().