Plugin Directory

Changeset 2715303


Ignore:
Timestamp:
04/27/2022 08:34:33 AM (4 years ago)
Author:
authress
Message:

Update to version 0.2.75 from GitHub

Location:
authress
Files:
19 edited
1 copied

Legend:

Unmodified
Added
Removed
  • authress/assets/readme.txt

    r2715053 r2715303  
    55Requires PHP: 7.4
    66Tested up to: 5.9.1
    7 Stable tag: 0.2.74
     7Stable tag: 0.2.75
    88License: Apache-2.0
    99License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE
  • authress/tags/0.2.75/Authress_Sso_Login.php

    r2715053 r2715303  
    44    Plugin URI:   https://wordpress.org/plugins/authress
    55    Description:  Upgrades the WordPress login to support SSO Login.
    6     Version:      0.2.74
     6    Version:      0.2.75
    77    Author:       Authress
    88    Author URI:   https://authress.io
     
    1111*/
    1212
    13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.74' );
     13define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.75' );
    1414
    1515define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ );
  • authress/tags/0.2.75/lib/Authress_Sso_Login_Users.php

    r2715053 r2715303  
    3939
    4040        $displayName = '';
    41         if ( isset( $userinfo->nickname ) ) {
     41        if ( isset( $userinfo->preferred_username ) ) {
     42            $displayName = $userinfo->preferred_username;
     43        } elseif ( isset( $userinfo->nickname ) ) {
    4244            $displayName = $userinfo->nickname;
    4345        } elseif ( isset( $userinfo->name ) ) {
     
    5052
    5153        $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        }
    5266
    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         }
    6767        // Create the user data array for updating first- and lastname
    6868        $user_data = [
     
    9696        }
    9797
    98         // $firstname = '';
    99         // $lastname  = '';
    100 
    101         // if ( isset( $userinfo->name ) ) {
    102         //  // Split the name into first- and lastname
    103         //  $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 
    13298        $updatedUserObject = (object) [
    13399            'ID' => $ID
     
    139105
    140106        // 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         // }
    150107
    151108        // Update the user
  • authress/tags/0.2.75/readme.txt

    r2715053 r2715303  
    55Requires PHP: 7.4
    66Tested up to: 5.9.1
    7 Stable tag: 0.2.74
     7Stable tag: 0.2.75
    88License: Apache-2.0
    99License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE
  • authress/tags/0.2.75/vendor/autoload.php

    r2715053 r2715303  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee::getLoader();
     7return ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11::getLoader();
  • authress/tags/0.2.75/vendor/composer/InstalledVersions.php

    r2715053 r2715303  
    3131    array (
    3232    ),
    33     'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     33    'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    3434    'name' => 'authress/wordpress-plugin.php',
    3535  ),
     
    4343      array (
    4444      ),
    45       'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     45      'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    4646    ),
    4747    'codercat/jwk-to-pem' =>
  • authress/tags/0.2.75/vendor/composer/autoload_real.php

    r2715053 r2715303  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee
     5class ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequired7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file);
     61            composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequired7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file)
     68function composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • authress/tags/0.2.75/vendor/composer/autoload_static.php

    r2715053 r2715303  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee
     7class ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11
    88{
    99    public static $files = array (
     
    631631    {
    632632        return \Closure::bind(function () use ($loader) {
    633             $loader->prefixLengthsPsr4 = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$prefixLengthsPsr4;
    634             $loader->prefixDirsPsr4 = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$prefixDirsPsr4;
    635             $loader->fallbackDirsPsr4 = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$fallbackDirsPsr4;
    636             $loader->classMap = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$classMap;
     633            $loader->prefixLengthsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixLengthsPsr4;
     634            $loader->prefixDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixDirsPsr4;
     635            $loader->fallbackDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$fallbackDirsPsr4;
     636            $loader->classMap = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$classMap;
    637637
    638638        }, null, ClassLoader::class);
  • authress/tags/0.2.75/vendor/composer/installed.php

    r2715053 r2715303  
    77    array (
    88    ),
    9     'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     9    'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    1010    'name' => 'authress/wordpress-plugin.php',
    1111  ),
     
    1919      array (
    2020      ),
    21       'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     21      'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    2222    ),
    2323    'codercat/jwk-to-pem' =>
  • authress/tags/0.2.75/wordpress/readme.txt

    r2715053 r2715303  
    55Requires PHP: 7.4
    66Tested up to: 5.9.1
    7 Stable tag: 0.2.74
     7Stable tag: 0.2.75
    88License: Apache-2.0
    99License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE
  • authress/trunk/Authress_Sso_Login.php

    r2715053 r2715303  
    44    Plugin URI:   https://wordpress.org/plugins/authress
    55    Description:  Upgrades the WordPress login to support SSO Login.
    6     Version:      0.2.74
     6    Version:      0.2.75
    77    Author:       Authress
    88    Author URI:   https://authress.io
     
    1111*/
    1212
    13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.74' );
     13define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.75' );
    1414
    1515define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ );
  • authress/trunk/lib/Authress_Sso_Login_Users.php

    r2715053 r2715303  
    3939
    4040        $displayName = '';
    41         if ( isset( $userinfo->nickname ) ) {
     41        if ( isset( $userinfo->preferred_username ) ) {
     42            $displayName = $userinfo->preferred_username;
     43        } elseif ( isset( $userinfo->nickname ) ) {
    4244            $displayName = $userinfo->nickname;
    4345        } elseif ( isset( $userinfo->name ) ) {
     
    5052
    5153        $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        }
    5266
    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         }
    6767        // Create the user data array for updating first- and lastname
    6868        $user_data = [
     
    9696        }
    9797
    98         // $firstname = '';
    99         // $lastname  = '';
    100 
    101         // if ( isset( $userinfo->name ) ) {
    102         //  // Split the name into first- and lastname
    103         //  $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 
    13298        $updatedUserObject = (object) [
    13399            'ID' => $ID
     
    139105
    140106        // 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         // }
    150107
    151108        // Update the user
  • authress/trunk/readme.txt

    r2715053 r2715303  
    55Requires PHP: 7.4
    66Tested up to: 5.9.1
    7 Stable tag: 0.2.74
     7Stable tag: 0.2.75
    88License: Apache-2.0
    99License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE
  • authress/trunk/vendor/autoload.php

    r2715053 r2715303  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee::getLoader();
     7return ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11::getLoader();
  • authress/trunk/vendor/composer/InstalledVersions.php

    r2715053 r2715303  
    3131    array (
    3232    ),
    33     'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     33    'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    3434    'name' => 'authress/wordpress-plugin.php',
    3535  ),
     
    4343      array (
    4444      ),
    45       'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     45      'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    4646    ),
    4747    'codercat/jwk-to-pem' =>
  • authress/trunk/vendor/composer/autoload_real.php

    r2715053 r2715303  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee
     5class ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitd7a50876e147ddca45ab4fe50ac0efee', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit0a00b0b80e542329b39d5ed9679d2c11', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequired7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file);
     61            composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequired7a50876e147ddca45ab4fe50ac0efee($fileIdentifier, $file)
     68function composerRequire0a00b0b80e542329b39d5ed9679d2c11($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • authress/trunk/vendor/composer/autoload_static.php

    r2715053 r2715303  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee
     7class ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11
    88{
    99    public static $files = array (
     
    631631    {
    632632        return \Closure::bind(function () use ($loader) {
    633             $loader->prefixLengthsPsr4 = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$prefixLengthsPsr4;
    634             $loader->prefixDirsPsr4 = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$prefixDirsPsr4;
    635             $loader->fallbackDirsPsr4 = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$fallbackDirsPsr4;
    636             $loader->classMap = ComposerStaticInitd7a50876e147ddca45ab4fe50ac0efee::$classMap;
     633            $loader->prefixLengthsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixLengthsPsr4;
     634            $loader->prefixDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$prefixDirsPsr4;
     635            $loader->fallbackDirsPsr4 = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$fallbackDirsPsr4;
     636            $loader->classMap = ComposerStaticInit0a00b0b80e542329b39d5ed9679d2c11::$classMap;
    637637
    638638        }, null, ClassLoader::class);
  • authress/trunk/vendor/composer/installed.php

    r2715053 r2715303  
    77    array (
    88    ),
    9     'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     9    'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    1010    'name' => 'authress/wordpress-plugin.php',
    1111  ),
     
    1919      array (
    2020      ),
    21       'reference' => 'a36f4c03cd65df1e27c9d30b57e0fd8c4b4ab8a7',
     21      'reference' => '03c38fb7e73a8fcaf42ee0063678d0fd977bfda6',
    2222    ),
    2323    'codercat/jwk-to-pem' =>
  • authress/trunk/wordpress/readme.txt

    r2715053 r2715303  
    55Requires PHP: 7.4
    66Tested up to: 5.9.1
    7 Stable tag: 0.2.74
     7Stable tag: 0.2.75
    88License: Apache-2.0
    99License URI: https://github.com/Authress/wordpress-sso-login/blob/main/LICENSE
Note: See TracChangeset for help on using the changeset viewer.