Plugin Directory

Changeset 2714827


Ignore:
Timestamp:
04/26/2022 11:46:43 AM (4 years ago)
Author:
authress
Message:

Update to version 0.2.68 from GitHub

Location:
authress
Files:
25 edited
1 copied

Legend:

Unmodified
Added
Removed
  • authress/assets/readme.txt

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

    r2711496 r2714827  
    44    Plugin URI:   https://wordpress.org/plugins/authress
    55    Description:  Upgrades the WordPress login to support SSO Login.
    6     Version:      0.2.66
     6    Version:      0.2.68
    77    Author:       Authress
    88    Author URI:   https://authress.io
     
    1111*/
    1212
    13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.66' );
     13define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.68' );
    1414
    1515define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ );
     
    9696
    9797/**
    98  * Core WP hooks
     98 * Enable wp_safe_redirect to redirect to these hosts
    9999 *
    100100 * @param string $hosts
     
    102102
    103103function authress_sso_login_add_allowed_redirect_hosts( $hosts ) {
     104    authress_debug_log('=> authress_sso_login_add_allowed_redirect_hosts');
    104105    $hosts[] = 'authress.io';
    105     $hosts[] = authress_get_configuration_data_from_key( 'domain' );
    106     $hosts[] = authress_get_configuration_data_from_key( 'customDomain' );
    107     $hosts[] = authress_get_configuration_data_from_key( 'authress_server_domain' );
     106    $hosts[] = str_replace("https://", "", authress_get_configuration_data_from_key( 'domain' ));
     107    $hosts[] = str_replace("https://", "", authress_get_configuration_data_from_key( 'customDomain' ));
     108    $hosts[] = str_replace("https://", "", authress_get_configuration_data_from_key( 'authress_server_domain' ));
     109
     110    authress_debug_log('    Setting safe redirects:  ' . implode(",", $hosts));
    108111    return $hosts;
    109112}
  • authress/tags/0.2.68/lib/Authress_Sso_Login_Admin_Generic.php

    r2690169 r2714827  
    190190    protected function render_field_description( $text ) {
    191191        $period = ! in_array( $text[ strlen( $text ) - 1 ], [ '.', ':' ], true ) ? '.' : '';
    192         printf( '<div class="subelement"><span class="description">%s%s</span></div>', esc_attr($text), esc_attr($period) );
     192        // The field descriptions are already sanitized no reason to force this to happen again, and often are being passed in html as well, which should not be sanitized.
     193        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     194        printf( '<div class="subelement"><span class="description">%s%s</span></div>', $text, esc_attr($period) );
    193195    }
    194196
     
    210212     *
    211213     * @param string $path - dashboard sub-section, if any
     214     * @param string $name - name of location in Authress management portal
    212215     *
    213216     * @return string
    214217     */
    215     protected function get_dashboard_link( $path = '' ) {
    216         return sprintf('<a href="https://authress.io/app/#/setup?focus=%s" target="_blank">%s</a>', $path, __( 'Authress management portal', 'wp-authress' ));
     218    protected function get_dashboard_link( $path = '', $name = 'management portal') {
     219        return sprintf('<a href="https://authress.io/app/#/setup?focus=%s" target="_blank">%s</a>', $path, __( 'Authress ', 'wp-authress' ) . $name);
    217220    }
    218221
  • authress/tags/0.2.68/lib/Authress_Sso_Login_LoginManager.php

    r2710778 r2714827  
    279279     */
    280280    public function logout() {
     281        authress_debug_log('=> LoginManager.logout');
     282
     283        if (!isset($_COOKIE['user']) && !isset($_COOKIE['authorization'])) {
     284            authress_debug_log("    User not logged in, going to login screen.");
     285            wp_safe_redirect(wp_login_url());
     286            exit();
     287        }
     288       
    281289        setcookie('user', '');
    282290        setcookie('authorization', '');
     
    285293        }
    286294
    287         wp_safe_redirect( home_url() );
     295        $authressLoginHostUrl = $this->a0_options->get('customDomain');
     296        $applicationId = $this->a0_options->get('applicationId');
     297
     298        $authressLogoutUrl = $authressLoginHostUrl . "/logout?" . build_query(array(
     299            "redirect_uri" => rawurlencode(home_url()),
     300            "client_id" => $applicationId
     301        ));
     302
     303        authress_debug_log("     Logout Redirect: " . $authressLogoutUrl);
     304
     305        wp_safe_redirect( $authressLogoutUrl );
     306        exit();
    288307    }
    289308
     
    322341        // Log the user out completely.
    323342        wp_destroy_current_session();
    324         wp_logout();
    325343        wp_clear_auth_cookie();
    326344        wp_set_current_user( 0 );
    327         wp_safe_redirect(wp_login_url());
     345        wp_logout();
    328346        exit;
    329 
    330         // $html = sprintf(
    331         //  '%s: %s [%s: %s]<br><br><a href="%s">%s</a>',
    332         //  __( 'There was a problem with your log in', 'wp-authress' ),
    333         //  ! empty( $msg )
    334         //      ? sanitize_text_field( $msg )
    335         //      : __( 'Please see the site administrator', 'wp-authress' ),
    336         //  __( 'error code', 'wp-authress' ),
    337         //  $code ? sanitize_text_field( $code ) : __( 'unknown', 'wp-authress' ),
    338         //  $this->authress_logout_url( wp_login_url() ),
    339         //  __( '← Login', 'wp-authress' )
    340         // );
    341 
    342         // wp_die($html);
    343347    }
    344348
     
    350354    private function decode_id_token( $id_token ) {
    351355        authress_debug_log('=> decode_id_token()');
    352         $expectedIss = $this->a0_options->get_auth_domain();
     356        $expectedIss = $this->a0_options->get('customDomain');
    353357
    354358        $config = Configuration::forUnsecuredSigner();
     
    421425        return $id_token_obj;
    422426    }
    423 
    424     /**
    425      * Generate the Authress logout URL.
    426      *
    427      * @param string|null $return_to - Site URL to return to after logging out.
    428      *
    429      * @return string
    430      *
    431      * @codeCoverageIgnore - Private method
    432      */
    433     private function authress_logout_url( $return_to = null ) {
    434         return sprintf('/wp-login.php?action=logout');
    435     }
    436427}
  • authress/tags/0.2.68/lib/Authress_Sso_Login_Options.php

    r2690169 r2714827  
    283283        $site_url = site_url( 'index.php', $protocol );
    284284        return add_query_arg( 'authress', 1, $site_url );
    285     }
    286 
    287     /**
    288      * Get the authentication domain.
    289      *
    290      * @return string
    291      */
    292     public function get_auth_domain() {
    293         $domain = $this->get( 'customDomain' );
    294         if ( empty( $domain ) ) {
    295             $domain = $this->get( 'domain' );
    296         }
    297         return $domain;
    298285    }
    299286
  • authress/tags/0.2.68/lib/Authress_Sso_Login_Settings_Configuration.php

    r2688858 r2714827  
    5252
    5353    /**
    54      * Render form field and description for the `domain` option.
    55      * IMPORTANT: Internal callback use only, do not call this function directly!
    56      *
    57      * @param array $args - callback args passed in from add_settings_field().
    58      *
    59      * @see Authress_Sso_Login_Admin_Generic::init_option_section()
    60      * @see add_settings_field()
    61      */
    62     public function render_domain( $args = [] ) {
    63 
    64         $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    65         $this->render_text_field( $args['label_for'], $args['opt_name'], 'text', '', $style );
    66         $this->render_field_description(
    67             __( 'Authress Domain, found in your Application settings in the ', 'wp-authress' ) .
    68             $this->get_dashboard_link( 'applications' )
    69         );
    70     }
    71 
    72     /**
    7354     * Render form field and description for the `custom_domain` option.
    7455     * IMPORTANT: Internal callback use only, do not call this function directly!
     
    8465        $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    8566        $this->render_text_field( $args['label_for'], $args['opt_name'], 'text', '', $style );
    86         $this->render_field_description(__( 'Your custom domain host url, found in the domain settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'domains' ));
     67        $this->render_field_description(__( 'Your custom domain host url, found in the domain settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'domains', 'custom domains configuration' ));
    8768    }
    8869
     
    9980        $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    10081        $this->render_text_field( $args['label_for'], $args['opt_name'], 'password', '', $style );
    101         $this->render_field_description(__( 'Authress Service Client Access Key, found in the service client settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'clients' ));
     82        $this->render_field_description(__( 'Authress Service Client Access Key, found in the service client settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'clients', 'service clients section' ));
    10283    }
    10384
     
    11495        $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    11596        $this->render_text_field( $args['label_for'], $args['opt_name'], 'text', '', $style );
    116         $this->render_field_description(__( 'Identifier for this WordPress deployment, found in your Application settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'applications' ));
     97        $this->render_field_description(__( 'Identifier for this WordPress deployment, found in your Application settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'applications', 'applications configuration' ));
    11798    }
    11899
  • authress/tags/0.2.68/readme.txt

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

    r2711496 r2714827  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661::getLoader();
     7return ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6::getLoader();
  • authress/tags/0.2.68/vendor/composer/InstalledVersions.php

    r2711496 r2714827  
    3131    array (
    3232    ),
    33     'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     33    'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    3434    'name' => 'authress/wordpress-plugin.php',
    3535  ),
     
    4343      array (
    4444      ),
    45       'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     45      'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    4646    ),
    4747    'codercat/jwk-to-pem' =>
  • authress/tags/0.2.68/vendor/composer/autoload_real.php

    r2711496 r2714827  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661
     5class ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6', '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\ComposerStaticInit4be75cc2ae0a62b3eefefe681888a661::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit4db6591791311dc6f01035eac12e2bb6::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInit4be75cc2ae0a62b3eefefe681888a661::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit4db6591791311dc6f01035eac12e2bb6::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequire4be75cc2ae0a62b3eefefe681888a661($fileIdentifier, $file);
     61            composerRequire4db6591791311dc6f01035eac12e2bb6($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequire4be75cc2ae0a62b3eefefe681888a661($fileIdentifier, $file)
     68function composerRequire4db6591791311dc6f01035eac12e2bb6($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • authress/tags/0.2.68/vendor/composer/autoload_static.php

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

    r2711496 r2714827  
    77    array (
    88    ),
    9     'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     9    'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    1010    'name' => 'authress/wordpress-plugin.php',
    1111  ),
     
    1919      array (
    2020      ),
    21       'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     21      'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    2222    ),
    2323    'codercat/jwk-to-pem' =>
  • authress/tags/0.2.68/wordpress/readme.txt

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

    r2711496 r2714827  
    44    Plugin URI:   https://wordpress.org/plugins/authress
    55    Description:  Upgrades the WordPress login to support SSO Login.
    6     Version:      0.2.66
     6    Version:      0.2.68
    77    Author:       Authress
    88    Author URI:   https://authress.io
     
    1111*/
    1212
    13 define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.66' );
     13define( 'AUTHRESS_SSO_LOGIN_VERSION', '0.2.68' );
    1414
    1515define( 'AUTHRESS_SSO_LOGIN_PLUGIN_FILE', __FILE__ );
     
    9696
    9797/**
    98  * Core WP hooks
     98 * Enable wp_safe_redirect to redirect to these hosts
    9999 *
    100100 * @param string $hosts
     
    102102
    103103function authress_sso_login_add_allowed_redirect_hosts( $hosts ) {
     104    authress_debug_log('=> authress_sso_login_add_allowed_redirect_hosts');
    104105    $hosts[] = 'authress.io';
    105     $hosts[] = authress_get_configuration_data_from_key( 'domain' );
    106     $hosts[] = authress_get_configuration_data_from_key( 'customDomain' );
    107     $hosts[] = authress_get_configuration_data_from_key( 'authress_server_domain' );
     106    $hosts[] = str_replace("https://", "", authress_get_configuration_data_from_key( 'domain' ));
     107    $hosts[] = str_replace("https://", "", authress_get_configuration_data_from_key( 'customDomain' ));
     108    $hosts[] = str_replace("https://", "", authress_get_configuration_data_from_key( 'authress_server_domain' ));
     109
     110    authress_debug_log('    Setting safe redirects:  ' . implode(",", $hosts));
    108111    return $hosts;
    109112}
  • authress/trunk/lib/Authress_Sso_Login_Admin_Generic.php

    r2690169 r2714827  
    190190    protected function render_field_description( $text ) {
    191191        $period = ! in_array( $text[ strlen( $text ) - 1 ], [ '.', ':' ], true ) ? '.' : '';
    192         printf( '<div class="subelement"><span class="description">%s%s</span></div>', esc_attr($text), esc_attr($period) );
     192        // The field descriptions are already sanitized no reason to force this to happen again, and often are being passed in html as well, which should not be sanitized.
     193        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     194        printf( '<div class="subelement"><span class="description">%s%s</span></div>', $text, esc_attr($period) );
    193195    }
    194196
     
    210212     *
    211213     * @param string $path - dashboard sub-section, if any
     214     * @param string $name - name of location in Authress management portal
    212215     *
    213216     * @return string
    214217     */
    215     protected function get_dashboard_link( $path = '' ) {
    216         return sprintf('<a href="https://authress.io/app/#/setup?focus=%s" target="_blank">%s</a>', $path, __( 'Authress management portal', 'wp-authress' ));
     218    protected function get_dashboard_link( $path = '', $name = 'management portal') {
     219        return sprintf('<a href="https://authress.io/app/#/setup?focus=%s" target="_blank">%s</a>', $path, __( 'Authress ', 'wp-authress' ) . $name);
    217220    }
    218221
  • authress/trunk/lib/Authress_Sso_Login_LoginManager.php

    r2710778 r2714827  
    279279     */
    280280    public function logout() {
     281        authress_debug_log('=> LoginManager.logout');
     282
     283        if (!isset($_COOKIE['user']) && !isset($_COOKIE['authorization'])) {
     284            authress_debug_log("    User not logged in, going to login screen.");
     285            wp_safe_redirect(wp_login_url());
     286            exit();
     287        }
     288       
    281289        setcookie('user', '');
    282290        setcookie('authorization', '');
     
    285293        }
    286294
    287         wp_safe_redirect( home_url() );
     295        $authressLoginHostUrl = $this->a0_options->get('customDomain');
     296        $applicationId = $this->a0_options->get('applicationId');
     297
     298        $authressLogoutUrl = $authressLoginHostUrl . "/logout?" . build_query(array(
     299            "redirect_uri" => rawurlencode(home_url()),
     300            "client_id" => $applicationId
     301        ));
     302
     303        authress_debug_log("     Logout Redirect: " . $authressLogoutUrl);
     304
     305        wp_safe_redirect( $authressLogoutUrl );
     306        exit();
    288307    }
    289308
     
    322341        // Log the user out completely.
    323342        wp_destroy_current_session();
    324         wp_logout();
    325343        wp_clear_auth_cookie();
    326344        wp_set_current_user( 0 );
    327         wp_safe_redirect(wp_login_url());
     345        wp_logout();
    328346        exit;
    329 
    330         // $html = sprintf(
    331         //  '%s: %s [%s: %s]<br><br><a href="%s">%s</a>',
    332         //  __( 'There was a problem with your log in', 'wp-authress' ),
    333         //  ! empty( $msg )
    334         //      ? sanitize_text_field( $msg )
    335         //      : __( 'Please see the site administrator', 'wp-authress' ),
    336         //  __( 'error code', 'wp-authress' ),
    337         //  $code ? sanitize_text_field( $code ) : __( 'unknown', 'wp-authress' ),
    338         //  $this->authress_logout_url( wp_login_url() ),
    339         //  __( '← Login', 'wp-authress' )
    340         // );
    341 
    342         // wp_die($html);
    343347    }
    344348
     
    350354    private function decode_id_token( $id_token ) {
    351355        authress_debug_log('=> decode_id_token()');
    352         $expectedIss = $this->a0_options->get_auth_domain();
     356        $expectedIss = $this->a0_options->get('customDomain');
    353357
    354358        $config = Configuration::forUnsecuredSigner();
     
    421425        return $id_token_obj;
    422426    }
    423 
    424     /**
    425      * Generate the Authress logout URL.
    426      *
    427      * @param string|null $return_to - Site URL to return to after logging out.
    428      *
    429      * @return string
    430      *
    431      * @codeCoverageIgnore - Private method
    432      */
    433     private function authress_logout_url( $return_to = null ) {
    434         return sprintf('/wp-login.php?action=logout');
    435     }
    436427}
  • authress/trunk/lib/Authress_Sso_Login_Options.php

    r2690169 r2714827  
    283283        $site_url = site_url( 'index.php', $protocol );
    284284        return add_query_arg( 'authress', 1, $site_url );
    285     }
    286 
    287     /**
    288      * Get the authentication domain.
    289      *
    290      * @return string
    291      */
    292     public function get_auth_domain() {
    293         $domain = $this->get( 'customDomain' );
    294         if ( empty( $domain ) ) {
    295             $domain = $this->get( 'domain' );
    296         }
    297         return $domain;
    298285    }
    299286
  • authress/trunk/lib/Authress_Sso_Login_Settings_Configuration.php

    r2688858 r2714827  
    5252
    5353    /**
    54      * Render form field and description for the `domain` option.
    55      * IMPORTANT: Internal callback use only, do not call this function directly!
    56      *
    57      * @param array $args - callback args passed in from add_settings_field().
    58      *
    59      * @see Authress_Sso_Login_Admin_Generic::init_option_section()
    60      * @see add_settings_field()
    61      */
    62     public function render_domain( $args = [] ) {
    63 
    64         $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    65         $this->render_text_field( $args['label_for'], $args['opt_name'], 'text', '', $style );
    66         $this->render_field_description(
    67             __( 'Authress Domain, found in your Application settings in the ', 'wp-authress' ) .
    68             $this->get_dashboard_link( 'applications' )
    69         );
    70     }
    71 
    72     /**
    7354     * Render form field and description for the `custom_domain` option.
    7455     * IMPORTANT: Internal callback use only, do not call this function directly!
     
    8465        $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    8566        $this->render_text_field( $args['label_for'], $args['opt_name'], 'text', '', $style );
    86         $this->render_field_description(__( 'Your custom domain host url, found in the domain settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'domains' ));
     67        $this->render_field_description(__( 'Your custom domain host url, found in the domain settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'domains', 'custom domains configuration' ));
    8768    }
    8869
     
    9980        $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    10081        $this->render_text_field( $args['label_for'], $args['opt_name'], 'password', '', $style );
    101         $this->render_field_description(__( 'Authress Service Client Access Key, found in the service client settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'clients' ));
     82        $this->render_field_description(__( 'Authress Service Client Access Key, found in the service client settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'clients', 'service clients section' ));
    10283    }
    10384
     
    11495        $style = $this->options->get( $args['opt_name'] ) ? '' : self::ERROR_FIELD_STYLE;
    11596        $this->render_text_field( $args['label_for'], $args['opt_name'], 'text', '', $style );
    116         $this->render_field_description(__( 'Identifier for this WordPress deployment, found in your Application settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'applications' ));
     97        $this->render_field_description(__( 'Identifier for this WordPress deployment, found in your Application settings in the ', 'wp-authress' ) . $this->get_dashboard_link( 'applications', 'applications configuration' ));
    11798    }
    11899
  • authress/trunk/readme.txt

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

    r2711496 r2714827  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661::getLoader();
     7return ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6::getLoader();
  • authress/trunk/vendor/composer/InstalledVersions.php

    r2711496 r2714827  
    3131    array (
    3232    ),
    33     'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     33    'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    3434    'name' => 'authress/wordpress-plugin.php',
    3535  ),
     
    4343      array (
    4444      ),
    45       'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     45      'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    4646    ),
    4747    'codercat/jwk-to-pem' =>
  • authress/trunk/vendor/composer/autoload_real.php

    r2711496 r2714827  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661
     5class ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit4be75cc2ae0a62b3eefefe681888a661', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit4db6591791311dc6f01035eac12e2bb6', '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\ComposerStaticInit4be75cc2ae0a62b3eefefe681888a661::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit4db6591791311dc6f01035eac12e2bb6::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInit4be75cc2ae0a62b3eefefe681888a661::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit4db6591791311dc6f01035eac12e2bb6::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequire4be75cc2ae0a62b3eefefe681888a661($fileIdentifier, $file);
     61            composerRequire4db6591791311dc6f01035eac12e2bb6($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequire4be75cc2ae0a62b3eefefe681888a661($fileIdentifier, $file)
     68function composerRequire4db6591791311dc6f01035eac12e2bb6($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • authress/trunk/vendor/composer/autoload_static.php

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

    r2711496 r2714827  
    77    array (
    88    ),
    9     'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     9    'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    1010    'name' => 'authress/wordpress-plugin.php',
    1111  ),
     
    1919      array (
    2020      ),
    21       'reference' => '833c0d646bdb9acbf738683c7907524d776e9c7c',
     21      'reference' => '5a26c71f3314a427461cccda1706f8666932b650',
    2222    ),
    2323    'codercat/jwk-to-pem' =>
  • authress/trunk/wordpress/readme.txt

    r2711496 r2714827  
    55Requires PHP: 7.4
    66Tested up to: 5.9.1
    7 Stable tag: 0.2.66
     7Stable tag: 0.2.68
    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.