Changeset 2715303
- Timestamp:
- 04/27/2022 08:34:33 AM (4 years ago)
- Location:
- authress
- Files:
-
- 19 edited
- 1 copied
-
assets/readme.txt (modified) (1 diff)
-
tags/0.2.75 (copied) (copied from authress/trunk)
-
tags/0.2.75/Authress_Sso_Login.php (modified) (2 diffs)
-
tags/0.2.75/lib/Authress_Sso_Login_Users.php (modified) (4 diffs)
-
tags/0.2.75/readme.txt (modified) (1 diff)
-
tags/0.2.75/vendor/autoload.php (modified) (1 diff)
-
tags/0.2.75/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
tags/0.2.75/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/0.2.75/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/0.2.75/vendor/composer/installed.php (modified) (2 diffs)
-
tags/0.2.75/wordpress/readme.txt (modified) (1 diff)
-
trunk/Authress_Sso_Login.php (modified) (2 diffs)
-
trunk/lib/Authress_Sso_Login_Users.php (modified) (4 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
r2715053 r2715303 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 47 Stable tag: 0.2.75 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE -
authress/tags/0.2.75/Authress_Sso_Login.php
r2715053 r2715303 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 46 Version: 0.2.75 7 7 Author: Authress 8 8 Author URI: https://authress.io … … 11 11 */ 12 12 13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.7 4' );13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.75' ); 14 14 15 15 define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ ); -
authress/tags/0.2.75/lib/Authress_Sso_Login_Users.php
r2715053 r2715303 39 39 40 40 $displayName = ''; 41 if ( isset( $userinfo->nickname ) ) { 41 if ( isset( $userinfo->preferred_username ) ) { 42 $displayName = $userinfo->preferred_username; 43 } elseif ( isset( $userinfo->nickname ) ) { 42 44 $displayName = $userinfo->nickname; 43 45 } elseif ( isset( $userinfo->name ) ) { … … 50 52 51 53 $description = ''; 54 if ( isset( $userinfo->headline ) ) { 55 $description = $userinfo->headline; 56 } 57 if ( isset( $userinfo->description ) ) { 58 $description = $userinfo->description; 59 } 60 if ( isset( $userinfo->bio ) ) { 61 $description = $userinfo->bio; 62 } 63 if ( isset( $userinfo->about ) ) { 64 $description = $userinfo->about; 65 } 52 66 53 if ( empty( $description ) ) {54 if ( isset( $userinfo->headline ) ) {55 $description = $userinfo->headline;56 }57 if ( isset( $userinfo->description ) ) {58 $description = $userinfo->description;59 }60 if ( isset( $userinfo->bio ) ) {61 $description = $userinfo->bio;62 }63 if ( isset( $userinfo->about ) ) {64 $description = $userinfo->about;65 }66 }67 67 // Create the user data array for updating first- and lastname 68 68 $user_data = [ … … 96 96 } 97 97 98 // $firstname = '';99 // $lastname = '';100 101 // if ( isset( $userinfo->name ) ) {102 // // Split the name into first- and lastname103 // $names = explode( ' ', $userinfo->name );104 105 // if ( count( $names ) === 1 ) {106 // $firstname = $userinfo->name;107 // } elseif ( count( $names ) === 2 ) {108 // $firstname = $names[0];109 // $lastname = $names[1];110 // } else {111 // $lastname = array_pop( $names );112 // $firstname = implode( ' ', $names );113 // }114 // }115 116 // $description = '';117 // if ( empty( $description ) ) {118 // if ( isset( $userinfo->headline ) ) {119 // $description = $userinfo->headline;120 // }121 // if ( isset( $userinfo->description ) ) {122 // $description = $userinfo->description;123 // }124 // if ( isset( $userinfo->bio ) ) {125 // $description = $userinfo->bio;126 // }127 // if ( isset( $userinfo->about ) ) {128 // $description = $userinfo->about;129 // }130 // }131 132 98 $updatedUserObject = (object) [ 133 99 'ID' => $ID … … 139 105 140 106 // Should we force updating the user attributes to sync from the source? Or let the user change their name here? 141 // if ( isset( $firstname ) ) {142 // $updatedUserObject->first_name = $firstname;143 // }144 // if ( isset( $lastname ) ) {145 // $updatedUserObject->last_name = $lastname;146 // }147 // if ( isset( $description ) ) {148 // $updatedUserObject->description = $description;149 // }150 107 151 108 // Update the user -
authress/tags/0.2.75/readme.txt
r2715053 r2715303 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 47 Stable tag: 0.2.75 8 8 License: Apache-2.0 9 9 License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE -
authress/tags/0.2.75/vendor/autoload.php
r2715053 r2715303 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee::getLoader();7 return ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11::getLoader(); -
authress/tags/0.2.75/vendor/composer/InstalledVersions.php
r2715053 r2715303 31 31 array ( 32 32 ), 33 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',33 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 34 34 'name' => 'authress/wordpress-plugin.php', 35 35 ), … … 43 43 array ( 44 44 ), 45 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',45 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 46 46 ), 47 47 'codercat/jwk-to-pem' => -
authress/tags/0.2.75/vendor/composer/autoload_real.php
r2715053 r2715303 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee5 class ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', '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 d7a50876e147ddca45ab4fe50ac0efee::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 54 54 55 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$files; 57 57 } else { 58 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 59 } 60 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire d7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file);61 composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file); 62 62 } 63 63 … … 66 66 } 67 67 68 function composerRequire d7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file)68 function composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file) 69 69 { 70 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
authress/tags/0.2.75/vendor/composer/autoload_static.php
r2715053 r2715303 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee7 class ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11 8 8 { 9 9 public static $files = array ( … … 631 631 { 632 632 return \Closure::bind(function () use ($loader) { 633 $loader->prefixLengthsPsr4 = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$prefixLengthsPsr4;634 $loader->prefixDirsPsr4 = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$prefixDirsPsr4;635 $loader->fallbackDirsPsr4 = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$fallbackDirsPsr4;636 $loader->classMap = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$classMap;633 $loader->prefixLengthsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixLengthsPsr4; 634 $loader->prefixDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixDirsPsr4; 635 $loader->fallbackDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$fallbackDirsPsr4; 636 $loader->classMap = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$classMap; 637 637 638 638 }, null, ClassLoader::class); -
authress/tags/0.2.75/vendor/composer/installed.php
r2715053 r2715303 7 7 array ( 8 8 ), 9 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',9 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 10 10 'name' => 'authress/wordpress-plugin.php', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',21 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 22 22 ), 23 23 'codercat/jwk-to-pem' => -
authress/tags/0.2.75/wordpress/readme.txt
r2715053 r2715303 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 47 Stable tag: 0.2.75 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
r2715053 r2715303 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 46 Version: 0.2.75 7 7 Author: Authress 8 8 Author URI: https://authress.io … … 11 11 */ 12 12 13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.7 4' );13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.75' ); 14 14 15 15 define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ ); -
authress/trunk/lib/Authress_Sso_Login_Users.php
r2715053 r2715303 39 39 40 40 $displayName = ''; 41 if ( isset( $userinfo->nickname ) ) { 41 if ( isset( $userinfo->preferred_username ) ) { 42 $displayName = $userinfo->preferred_username; 43 } elseif ( isset( $userinfo->nickname ) ) { 42 44 $displayName = $userinfo->nickname; 43 45 } elseif ( isset( $userinfo->name ) ) { … … 50 52 51 53 $description = ''; 54 if ( isset( $userinfo->headline ) ) { 55 $description = $userinfo->headline; 56 } 57 if ( isset( $userinfo->description ) ) { 58 $description = $userinfo->description; 59 } 60 if ( isset( $userinfo->bio ) ) { 61 $description = $userinfo->bio; 62 } 63 if ( isset( $userinfo->about ) ) { 64 $description = $userinfo->about; 65 } 52 66 53 if ( empty( $description ) ) {54 if ( isset( $userinfo->headline ) ) {55 $description = $userinfo->headline;56 }57 if ( isset( $userinfo->description ) ) {58 $description = $userinfo->description;59 }60 if ( isset( $userinfo->bio ) ) {61 $description = $userinfo->bio;62 }63 if ( isset( $userinfo->about ) ) {64 $description = $userinfo->about;65 }66 }67 67 // Create the user data array for updating first- and lastname 68 68 $user_data = [ … … 96 96 } 97 97 98 // $firstname = '';99 // $lastname = '';100 101 // if ( isset( $userinfo->name ) ) {102 // // Split the name into first- and lastname103 // $names = explode( ' ', $userinfo->name );104 105 // if ( count( $names ) === 1 ) {106 // $firstname = $userinfo->name;107 // } elseif ( count( $names ) === 2 ) {108 // $firstname = $names[0];109 // $lastname = $names[1];110 // } else {111 // $lastname = array_pop( $names );112 // $firstname = implode( ' ', $names );113 // }114 // }115 116 // $description = '';117 // if ( empty( $description ) ) {118 // if ( isset( $userinfo->headline ) ) {119 // $description = $userinfo->headline;120 // }121 // if ( isset( $userinfo->description ) ) {122 // $description = $userinfo->description;123 // }124 // if ( isset( $userinfo->bio ) ) {125 // $description = $userinfo->bio;126 // }127 // if ( isset( $userinfo->about ) ) {128 // $description = $userinfo->about;129 // }130 // }131 132 98 $updatedUserObject = (object) [ 133 99 'ID' => $ID … … 139 105 140 106 // Should we force updating the user attributes to sync from the source? Or let the user change their name here? 141 // if ( isset( $firstname ) ) {142 // $updatedUserObject->first_name = $firstname;143 // }144 // if ( isset( $lastname ) ) {145 // $updatedUserObject->last_name = $lastname;146 // }147 // if ( isset( $description ) ) {148 // $updatedUserObject->description = $description;149 // }150 107 151 108 // Update the user -
authress/trunk/readme.txt
r2715053 r2715303 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 47 Stable tag: 0.2.75 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
r2715053 r2715303 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee::getLoader();7 return ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11::getLoader(); -
authress/trunk/vendor/composer/InstalledVersions.php
r2715053 r2715303 31 31 array ( 32 32 ), 33 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',33 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 34 34 'name' => 'authress/wordpress-plugin.php', 35 35 ), … … 43 43 array ( 44 44 ), 45 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',45 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 46 46 ), 47 47 'codercat/jwk-to-pem' => -
authress/trunk/vendor/composer/autoload_real.php
r2715053 r2715303 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee5 class ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit d7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', '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 d7a50876e147ddca45ab4fe50ac0efee::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 54 54 55 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$files; 57 57 } else { 58 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 59 } 60 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire d7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file);61 composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file); 62 62 } 63 63 … … 66 66 } 67 67 68 function composerRequire d7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file)68 function composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file) 69 69 { 70 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
authress/trunk/vendor/composer/autoload_static.php
r2715053 r2715303 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee7 class ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11 8 8 { 9 9 public static $files = array ( … … 631 631 { 632 632 return \Closure::bind(function () use ($loader) { 633 $loader->prefixLengthsPsr4 = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$prefixLengthsPsr4;634 $loader->prefixDirsPsr4 = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$prefixDirsPsr4;635 $loader->fallbackDirsPsr4 = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$fallbackDirsPsr4;636 $loader->classMap = ComposerStaticInit d7a50876e147ddca45ab4fe50ac0efee::$classMap;633 $loader->prefixLengthsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixLengthsPsr4; 634 $loader->prefixDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixDirsPsr4; 635 $loader->fallbackDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$fallbackDirsPsr4; 636 $loader->classMap = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$classMap; 637 637 638 638 }, null, ClassLoader::class); -
authress/trunk/vendor/composer/installed.php
r2715053 r2715303 7 7 array ( 8 8 ), 9 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',9 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 10 10 'name' => 'authress/wordpress-plugin.php', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',21 'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6', 22 22 ), 23 23 'codercat/jwk-to-pem' => -
authress/trunk/wordpress/readme.txt
r2715053 r2715303 5 5 Requires PHP: 7.4 6 6 Tested up to: 5.9.1 7 Stable tag: 0.2.7 47 Stable tag: 0.2.75 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.