| 1 |
<?php |
| 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.3 |
| 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 |
| 13 |
* |
| 14 |
* Portions forked from Restricted Site Access plugin: |
| 15 |
* http://wordpress.org/plugins/restricted-site-access/ |
| 16 |
* Portions forked from wpCAS plugin: |
| 17 |
* http://wordpress.org/extend/plugins/cas-authentication/ |
| 18 |
* Portions forked from Limit Login Attempts: |
| 19 |
* http://wordpress.org/plugins/limit-login-attempts/ |
| 20 |
* |
| 21 |
* @package authorizer |
| 22 |
*/ |
| 23 |
|
| 24 |
namespace Authorizer; |
| 25 |
|
| 26 |
// Prevent direct access. |
| 27 |
defined( 'ABSPATH' ) || exit; |
| 28 |
|
| 29 |
require_once __DIR__ . '/polyfills.php'; |
| 30 |
|
| 31 |
require_once __DIR__ . '/src/authorizer/abstract-class-singleton.php'; |
| 32 |
|
| 33 |
require_once __DIR__ . '/src/authorizer/class-wp-plugin-authorizer.php'; |
| 34 |
|
| 35 |
require_once __DIR__ . '/src/authorizer/class-helper.php'; |
| 36 |
|
| 37 |
require_once __DIR__ . '/src/authorizer/class-updates.php'; |
| 38 |
|
| 39 |
require_once __DIR__ . '/src/authorizer/class-authentication.php'; |
| 40 |
require_once __DIR__ . '/src/authorizer/class-authorization.php'; |
| 41 |
require_once __DIR__ . '/src/authorizer/class-login-form.php'; |
| 42 |
require_once __DIR__ . '/src/authorizer/class-dashboard-widget.php'; |
| 43 |
require_once __DIR__ . '/src/authorizer/class-ajax-endpoints.php'; |
| 44 |
require_once __DIR__ . '/src/authorizer/class-sync-userdata.php'; |
| 45 |
require_once __DIR__ . '/src/authorizer/class-admin-page.php'; |
| 46 |
|
| 47 |
require_once __DIR__ . '/src/authorizer/class-options.php'; |
| 48 |
|
| 49 |
require_once __DIR__ . '/src/authorizer/options/class-access-lists.php'; |
| 50 |
require_once __DIR__ . '/src/authorizer/options/class-login-access.php'; |
| 51 |
require_once __DIR__ . '/src/authorizer/options/class-public-access.php'; |
| 52 |
require_once __DIR__ . '/src/authorizer/options/class-external.php'; |
| 53 |
|
| 54 |
require_once __DIR__ . '/src/authorizer/options/external/class-oauth2.php'; |
| 55 |
require_once __DIR__ . '/src/authorizer/options/external/class-google.php'; |
| 56 |
require_once __DIR__ . '/src/authorizer/options/external/class-cas.php'; |
| 57 |
require_once __DIR__ . '/src/authorizer/options/external/class-ldap.php'; |
| 58 |
require_once __DIR__ . '/src/authorizer/options/external/class-oidc.php'; |
| 59 |
|
| 60 |
require_once __DIR__ . '/src/authorizer/options/class-advanced.php'; |
| 61 |
|
| 62 |
/** |
| 63 |
* Add composer libraries. |
| 64 |
*/ |
| 65 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 66 |
|
| 67 |
/** |
| 68 |
* Helper function to always return the path to the plugin's entry point. Used |
| 69 |
* when locating asset paths using plugins_url(). |
| 70 |
*/ |
| 71 |
function plugin_root() { |
| 72 |
return __FILE__; |
| 73 |
} |
| 74 |
|
| 75 |
// Instantiate the plugin class. |
| 76 |
WP_Plugin_Authorizer::get_instance(); |
| 77 |
|