Changeset 2715046
- Timestamp:
- 04/26/2022 06:39:38 PM (4 years ago)
- Location:
- authress
- Files:
-
- 19 edited
- 1 copied
-
assets/readme.txt (modified) (1 diff)
-
tags/0.2.73 (copied) (copied from authress/trunk)
-
tags/0.2.73/Authress_Sso_Login.php (modified) (2 diffs)
-
tags/0.2.73/lib/Authress_Sso_Login_LoginManager.php (modified) (7 diffs)
-
tags/0.2.73/readme.txt (modified) (1 diff)
-
tags/0.2.73/vendor/autoload.php (modified) (1 diff)
-
tags/0.2.73/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
tags/0.2.73/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/0.2.73/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/0.2.73/vendor/composer/installed.php (modified) (2 diffs)
-
tags/0.2.73/wordpress/readme.txt (modified) (1 diff)
-
trunk/Authress_Sso_Login.php (modified) (2 diffs)
-
trunk/lib/Authress_Sso_Login_LoginManager.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wordpress/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
authress/assets/readme.txt
r2715042 r2715046 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 27 Stable tag: 0.2.73 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE -
authress/tags/0.2.73/Authress_Sso_Login.php
r2715042 r2715046 4 4 Plugin URI: https://wordpress.org/plugins/authress 5 5 Description: Upgrades the WordPress login to support SSO Login. 6 Version: 0.2.7 26 Version: 0.2.73 7 7 Author: Authress 8 8 Author URI: https://authress.io … … 11 11 */ 12 12 13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.7 2' );13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.73' ); 14 14 15 15 define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ ); -
authress/tags/0.2.73/lib/Authress_Sso_Login_LoginManager.php
r2715042 r2715046 100 100 // Catch any incoming errors and stop the login process. 101 101 if ( ! empty( $_REQUEST['error'] ) || ! empty( $_REQUEST['error_description'] ) ) { 102 setcookie('authress-authorization-step', 'log'); 102 103 // Input variable is sanitized. 103 104 // phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized … … 145 146 */ 146 147 public function handle_login_redirect() { 148 setcookie('authress-authorization-step', 'parse'); 147 149 authress_debug_log('=> handle_login_redirect'); 148 150 $access_token = sanitize_text_field(isset($_COOKIE['authorization']) ? wp_unslash($_COOKIE['authorization']) : ''); … … 169 171 $decoded_token = $this->decode_id_token( $id_token ); 170 172 $userinfo = $this->clean_id_token( $decoded_token ); 173 setcookie('authress-authorization-step', 'valid'); 171 174 172 175 if ( $this->login_user($userinfo) ) { … … 192 195 193 196 if ( ! is_null( $user ) ) { 197 setcookie('authress-authorization-step', 'update'); 194 198 authress_debug_log(' Existing user: updating'); 195 199 // User exists so log them in. … … 211 215 } 212 216 217 setcookie('authress-authorization-step', 'propagate'); 213 218 $updater = new Authress_Sso_Login_UsersRepo( $this->a0_options ); 214 219 $updater->update($user->data->ID, $userinfo); 215 220 } 216 221 222 setcookie('authress-authorization-step', 'store'); 217 223 $this->users_repo->update_authress_object( $user->data->ID, $userinfo ); 218 224 $this->do_login( $user); … … 220 226 } 221 227 try { 228 setcookie('authress-authorization-step', 'create'); 222 229 authress_debug_log(' New user: creating.'); 223 230 $creator = new Authress_Sso_Login_UsersRepo( $this->a0_options ); … … 260 267 authress_debug_log($user->user_login); 261 268 269 setcookie('authress-authorization-step', 'complete'); 262 270 wp_set_auth_cookie( $user->ID, $remember_users_session, $secure_cookie ); 263 271 do_action( 'wp_login', $user->user_login, $user ); -
authress/tags/0.2.73/readme.txt
r2715042 r2715046 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 27 Stable tag: 0.2.73 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE -
authress/tags/0.2.73/vendor/autoload.php
r2715042 r2715046 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d1::getLoader();7 return ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451::getLoader(); -
authress/tags/0.2.73/vendor/composer/InstalledVersions.php
r2715042 r2715046 31 31 array ( 32 32 ), 33 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',33 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 34 34 'name' => 'authress/wordpress-plugin.php', 35 35 ), … … 43 43 array ( 44 44 ), 45 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',45 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 46 46 ), 47 47 'codercat/jwk-to-pem' => -
authress/tags/0.2.73/vendor/composer/autoload_real.php
r2715042 r2715046 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d15 class ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d1', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d1', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit351e142ab6df3f8809480d994f8b0451::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 54 54 55 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$files; 57 57 } else { 58 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 59 } 60 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire 438b0f3c0f951498e00b132be546f1d1($fileIdentifier, $file);61 composerRequire351e142ab6df3f8809480d994f8b0451($fileIdentifier, $file); 62 62 } 63 63 … … 66 66 } 67 67 68 function composerRequire 438b0f3c0f951498e00b132be546f1d1($fileIdentifier, $file)68 function composerRequire351e142ab6df3f8809480d994f8b0451($fileIdentifier, $file) 69 69 { 70 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
authress/tags/0.2.73/vendor/composer/autoload_static.php
r2715042 r2715046 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 438b0f3c0f951498e00b132be546f1d17 class ComposerStaticInit351e142ab6df3f8809480d994f8b0451 8 8 { 9 9 public static $files = array ( … … 631 631 { 632 632 return \Closure::bind(function () use ($loader) { 633 $loader->prefixLengthsPsr4 = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$prefixLengthsPsr4;634 $loader->prefixDirsPsr4 = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$prefixDirsPsr4;635 $loader->fallbackDirsPsr4 = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$fallbackDirsPsr4;636 $loader->classMap = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$classMap;633 $loader->prefixLengthsPsr4 = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$prefixLengthsPsr4; 634 $loader->prefixDirsPsr4 = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$prefixDirsPsr4; 635 $loader->fallbackDirsPsr4 = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$fallbackDirsPsr4; 636 $loader->classMap = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$classMap; 637 637 638 638 }, null, ClassLoader::class); -
authress/tags/0.2.73/vendor/composer/installed.php
r2715042 r2715046 7 7 array ( 8 8 ), 9 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',9 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 10 10 'name' => 'authress/wordpress-plugin.php', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',21 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 22 22 ), 23 23 'codercat/jwk-to-pem' => -
authress/tags/0.2.73/wordpress/readme.txt
r2715042 r2715046 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 27 Stable tag: 0.2.73 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE -
authress/trunk/Authress_Sso_Login.php
r2715042 r2715046 4 4 Plugin URI: https://wordpress.org/plugins/authress 5 5 Description: Upgrades the WordPress login to support SSO Login. 6 Version: 0.2.7 26 Version: 0.2.73 7 7 Author: Authress 8 8 Author URI: https://authress.io … … 11 11 */ 12 12 13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.7 2' );13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.73' ); 14 14 15 15 define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ ); -
authress/trunk/lib/Authress_Sso_Login_LoginManager.php
r2715042 r2715046 100 100 // Catch any incoming errors and stop the login process. 101 101 if ( ! empty( $_REQUEST['error'] ) || ! empty( $_REQUEST['error_description'] ) ) { 102 setcookie('authress-authorization-step', 'log'); 102 103 // Input variable is sanitized. 103 104 // phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized … … 145 146 */ 146 147 public function handle_login_redirect() { 148 setcookie('authress-authorization-step', 'parse'); 147 149 authress_debug_log('=> handle_login_redirect'); 148 150 $access_token = sanitize_text_field(isset($_COOKIE['authorization']) ? wp_unslash($_COOKIE['authorization']) : ''); … … 169 171 $decoded_token = $this->decode_id_token( $id_token ); 170 172 $userinfo = $this->clean_id_token( $decoded_token ); 173 setcookie('authress-authorization-step', 'valid'); 171 174 172 175 if ( $this->login_user($userinfo) ) { … … 192 195 193 196 if ( ! is_null( $user ) ) { 197 setcookie('authress-authorization-step', 'update'); 194 198 authress_debug_log(' Existing user: updating'); 195 199 // User exists so log them in. … … 211 215 } 212 216 217 setcookie('authress-authorization-step', 'propagate'); 213 218 $updater = new Authress_Sso_Login_UsersRepo( $this->a0_options ); 214 219 $updater->update($user->data->ID, $userinfo); 215 220 } 216 221 222 setcookie('authress-authorization-step', 'store'); 217 223 $this->users_repo->update_authress_object( $user->data->ID, $userinfo ); 218 224 $this->do_login( $user); … … 220 226 } 221 227 try { 228 setcookie('authress-authorization-step', 'create'); 222 229 authress_debug_log(' New user: creating.'); 223 230 $creator = new Authress_Sso_Login_UsersRepo( $this->a0_options ); … … 260 267 authress_debug_log($user->user_login); 261 268 269 setcookie('authress-authorization-step', 'complete'); 262 270 wp_set_auth_cookie( $user->ID, $remember_users_session, $secure_cookie ); 263 271 do_action( 'wp_login', $user->user_login, $user ); -
authress/trunk/readme.txt
r2715042 r2715046 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 27 Stable tag: 0.2.73 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE -
authress/trunk/vendor/autoload.php
r2715042 r2715046 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d1::getLoader();7 return ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451::getLoader(); -
authress/trunk/vendor/composer/InstalledVersions.php
r2715042 r2715046 31 31 array ( 32 32 ), 33 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',33 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 34 34 'name' => 'authress/wordpress-plugin.php', 35 35 ), … … 43 43 array ( 44 44 ), 45 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',45 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 46 46 ), 47 47 'codercat/jwk-to-pem' => -
authress/trunk/vendor/composer/autoload_real.php
r2715042 r2715046 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d15 class ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d1', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 438b0f3c0f951498e00b132be546f1d1', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit351e142ab6df3f8809480d994f8b0451', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit351e142ab6df3f8809480d994f8b0451::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 54 54 55 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$files; 57 57 } else { 58 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 59 } 60 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire 438b0f3c0f951498e00b132be546f1d1($fileIdentifier, $file);61 composerRequire351e142ab6df3f8809480d994f8b0451($fileIdentifier, $file); 62 62 } 63 63 … … 66 66 } 67 67 68 function composerRequire 438b0f3c0f951498e00b132be546f1d1($fileIdentifier, $file)68 function composerRequire351e142ab6df3f8809480d994f8b0451($fileIdentifier, $file) 69 69 { 70 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
authress/trunk/vendor/composer/autoload_static.php
r2715042 r2715046 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 438b0f3c0f951498e00b132be546f1d17 class ComposerStaticInit351e142ab6df3f8809480d994f8b0451 8 8 { 9 9 public static $files = array ( … … 631 631 { 632 632 return \Closure::bind(function () use ($loader) { 633 $loader->prefixLengthsPsr4 = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$prefixLengthsPsr4;634 $loader->prefixDirsPsr4 = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$prefixDirsPsr4;635 $loader->fallbackDirsPsr4 = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$fallbackDirsPsr4;636 $loader->classMap = ComposerStaticInit 438b0f3c0f951498e00b132be546f1d1::$classMap;633 $loader->prefixLengthsPsr4 = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$prefixLengthsPsr4; 634 $loader->prefixDirsPsr4 = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$prefixDirsPsr4; 635 $loader->fallbackDirsPsr4 = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$fallbackDirsPsr4; 636 $loader->classMap = ComposerStaticInit351e142ab6df3f8809480d994f8b0451::$classMap; 637 637 638 638 }, null, ClassLoader::class); -
authress/trunk/vendor/composer/installed.php
r2715042 r2715046 7 7 array ( 8 8 ), 9 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',9 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 10 10 'name' => 'authress/wordpress-plugin.php', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' 4857b5559445d457c46fd502fdc8300ef835b028',21 'reference' => '17092d4007ffdfcebf55323321688967ee896649', 22 22 ), 23 23 'codercat/jwk-to-pem' => -
authress/trunk/wordpress/readme.txt
r2715042 r2715046 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 27 Stable tag: 0.2.73 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE
Note: See TracChangeset
for help on using the changeset viewer.