forked from uhm-coe/authorizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
authorizer.php
72 lines (58 loc) · 2.94 KB
/
authorizer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* Plugin Name: Authorizer
* Plugin URI: https://github.com/uhm-coe/authorizer
* Description: Authorizer limits login attempts, restricts access to specified users, and authenticates against external sources (e.g., Google, LDAP, or CAS).
* Version: 3.2.2
* Requires at least: 4.4
* Requires PHP: 7.2.5
* Author: Paul Ryan <[email protected]>
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: authorizer
*
* Portions forked from Restricted Site Access plugin:
* http://wordpress.org/plugins/restricted-site-access/
* Portions forked from wpCAS plugin:
* http://wordpress.org/extend/plugins/cas-authentication/
* Portions forked from Limit Login Attempts:
* http://wordpress.org/plugins/limit-login-attempts/
*
* @package authorizer
*/
namespace Authorizer;
require_once dirname( __FILE__ ) . '/polyfills.php';
require_once dirname( __FILE__ ) . '/src/authorizer/abstract-class-singleton.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-wp-plugin-authorizer.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-helper.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-updates.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-authentication.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-authorization.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-login-form.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-dashboard-widget.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-ajax-endpoints.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-sync-userdata.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-admin-page.php';
require_once dirname( __FILE__ ) . '/src/authorizer/class-options.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-access-lists.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-login-access.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-public-access.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-external.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-oauth2.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-google.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-cas.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-ldap.php';
require_once dirname( __FILE__ ) . '/src/authorizer/options/class-advanced.php';
/**
* Add composer libraries.
*/
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
/**
* Helper function to always return the path to the plugin's entry point. Used
* when locating asset paths using plugins_url().
*/
function plugin_root() {
return __FILE__;
}
// Instantiate the plugin class.
WP_Plugin_Authorizer::get_instance();