| @@ -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.13 | |
| 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., Google, LDAP, or CAS). | |
| 6 | + * Version: 3.5.0 | |
| 7 | + * Requires at least: 4.4 | |
| 8 | + * Requires PHP: 7.2.5 | |
| 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,10 +22,12 @@ | ||
| 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 dirname( __FILE__ ) . '/polyfills.php'; | |
| 25 | 27 | |
| 28 | +require_once dirname( __FILE__ ) . '/src/authorizer/abstract-class-singleton.php'; | |
| 29 | + | |
| 26 | 30 | require_once dirname( __FILE__ ) . '/src/authorizer/class-wp-plugin-authorizer.php'; |
| 27 | 31 | |
| 28 | 32 | require_once dirname( __FILE__ ) . '/src/authorizer/class-helper.php'; |
| 29 | 33 | |
| @@ -43,8 +47,9 @@ | ||
| 43 | 47 | require_once dirname( __FILE__ ) . '/src/authorizer/options/class-login-access.php'; |
| 44 | 48 | require_once dirname( __FILE__ ) . '/src/authorizer/options/class-public-access.php'; |
| 45 | 49 | require_once dirname( __FILE__ ) . '/src/authorizer/options/class-external.php'; |
| 46 | 50 | |
| 51 | +require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-oauth2.php'; | |
| 47 | 52 | require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-google.php'; |
| 48 | 53 | require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-cas.php'; |
| 49 | 54 | require_once dirname( __FILE__ ) . '/src/authorizer/options/external/class-ldap.php'; |
| 50 | 55 | |
| @@ -50,15 +55,11 @@ | ||
| 50 | 55 | |
| 51 | 56 | require_once dirname( __FILE__ ) . '/src/authorizer/options/class-advanced.php'; |
| 52 | 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 dirname( __FILE__ ) . '/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(). |