Plugin Directory

Changeset 1775003


Ignore:
Timestamp:
11/24/2017 11:58:09 PM (8 years ago)
Author:
authentiq
Message:

Preparing for 1.0.2 release

Location:
authentiq/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • authentiq/trunk/CHANGELOG.txt

    r1766274 r1775003  
    11== Changelog ==
     2
     3= 1.0.2 - 2017-11-25 =
     4
     5    * Feature - Add `authentiq_pre_insert_user_data` filter.
     6    * Feature - Add `authentiq_redirect_to_after_signin` filter.
    27
    38= 1.0.1 - 2017-11-14 =
    49
    5 * Tweak - Support WordPress 4.9.
    6 * Tweak - Make the Authentiq button in frontend a bit smaller.
     10    * Tweak - Support WordPress 4.9.
     11    * Tweak - Make the Authentiq button in frontend a bit smaller.
    712
    813= 1.0.0 - 2017-10-29 =
    914
    10 * Initial public release.
     15    * Initial public release.
  • authentiq/trunk/README.txt

    r1766274 r1775003  
    44Requires at least: 4.6
    55Tested up to: 4.9
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    112112== Changelog ==
    113113
     114= 1.0.2 - 2017-11-25 =
     115
     116    * Feature - Add `authentiq_pre_insert_user_data` filter.
     117    * Feature - Add `authentiq_redirect_to_after_signin` filter.
     118
    114119= 1.0.1 - 2017-11-14 =
    115120
    116 * Tweak - Support WordPress 4.9.
    117 * Tweak - Make the Authentiq button in frontend a bit smaller.
     121    * Tweak - Support WordPress 4.9.
     122    * Tweak - Make the Authentiq button in frontend a bit smaller.
    118123
    119124= 1.0.0 - 2017-10-29 =
    120125
    121 * Initial public release.
     126    * Initial public release.
  • authentiq/trunk/authentiq.php

    r1766274 r1775003  
    44 * Plugin URI:        https://wordpress.org/plugins/authentiq
    55 * Description:       Sign in (and sign up) to WordPress sites using the Authentiq ID app. Strong authentication, without the passwords.
    6  * Version:           1.0.1
     6 * Version:           1.0.2
    77 * Author:            The Authentiq Team
    88 * Author URI:        https://www.authentiq.com
     
    2121define('AUTHENTIQ_PLUGIN_DIR', trailingslashit(plugin_dir_path(__FILE__)));
    2222define('AUTHENTIQ_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
    23 define('AUTHENTIQ_VERSION', '1.0.1');
     23define('AUTHENTIQ_VERSION', '1.0.2');
    2424define('AUTHENTIQ_NAME', 'authentiq');
    2525define('AUTHENTIQ_LANG', AUTHENTIQ_NAME);
  • authentiq/trunk/includes/class-authentiq-options.php

    r1754859 r1775003  
    5252        }
    5353
     54        /**
     55         * Filters Authentiq option value.
     56         *
     57         * @since 1.0.0
     58         *
     59         * @param string     $value       Option value
     60         * @param string     $key         Option key
     61         */
    5462        return apply_filters('authentiq_get_option', $options[$key], $key);
    5563    }
  • authentiq/trunk/includes/class-authentiq-provider.php

    r1754859 r1775003  
    269269            }
    270270
     271            $user = $this->handle_wp_user($userinfo, $data->id_token, $data->access_token);
     272
    271273            // Perform user login to WP
    272             if ($this->handle_wp_user($userinfo, $data->id_token, $data->access_token)) {
     274            if ($user) {
    273275                // Default redirect URL for Authentiq
    274276                $redirect_to = $this->options->get('default_login_redirection', home_url());
     
    280282                    $redirect_to = $state_obj['redirect_to'];
    281283                }
     284
     285                /**
     286                 * Filters Authentiq redirect_to page after a user sign in.
     287                 *
     288                 * @since 1.0.0
     289                 *
     290                 * @param string  $redirect_to Page where user will be redirected to
     291                 * @param WP_User $user        WP_User object
     292                 */
     293                $redirect_to = apply_filters('authentiq_redirect_to_after_signin', $redirect_to, $user);
    282294
    283295                wp_safe_redirect($redirect_to);
     
    449461     * @param $access_token
    450462     *
    451      * @return bool
     463     * @return WP_User|false WP_User object on success, false on failure
    452464     * @throws Authentiq_Login_Flow_Validation_Exception
    453465     */
     
    535547            $this->login_user_to_wp($user, $userinfo, false, $id_token, $access_token);
    536548
    537             return true;
     549            return $user;
    538550
    539551        } else {
     
    567579                $this->login_user_to_wp($user, $userinfo, true, $id_token, $access_token);
    568580
    569                 return true;
     581                return $user;
    570582
    571583            } catch (Authentiq_User_Exception $e) {
  • authentiq/trunk/includes/class-authentiq-user.php

    r1754859 r1775003  
    148148
    149149        /**
     150         * Filters user data before the record is created or updated.
     151         *
     152         * It only includes data in the wp_users table wp_user, not any user metadata.
     153         *
     154         * @since 1.0.1
     155         *
     156         * @param array    $data          {
     157         *                                Values and keys for the user.
     158         *
     159         * @type string    $user_login    The user's login. Only included if $update == false
     160         * @type string    $user_pass     The user's password.
     161         * @type string    $user_email    The user's email.
     162         * @type string    $user_url      The user's url.
     163         * @type string    $user_nickname The user's nickname.
     164         * @type string    $display_name  The user's display name.
     165         * }
     166         *
     167         * @param bool     $update        Whether the user is being updated rather than created.
     168         * @param int|null $id            ID of the user to be updated, or NULL if the user is being created.
     169         */
     170        $user_data = apply_filters('authentiq_pre_insert_user_data', $user_data, false, null);
     171
     172        /**
    150173         * Filters if we can create this user
    151174         *
     
    202225        // Get WP user info from Authentiq userinfo
    203226        $user_data = Authentiq_User::get_user_data_from_userinfo($userinfo);
     227
     228        /**
     229         * Filters user data before the record is created or updated.
     230         *
     231         * It only includes data in the wp_users table wp_user, not any user metadata.
     232         *
     233         * @since 1.0.1
     234         *
     235         * @param array    $data          {
     236         *                                Values and keys for the user.
     237         *
     238         * @type string    $user_login    The user's login. Only included if $update == false
     239         * @type string    $user_pass     The user's password.
     240         * @type string    $user_email    The user's email.
     241         * @type string    $user_url      The user's url.
     242         * @type string    $user_nickname The user's nickname.
     243         * @type string    $display_name  The user's display name.
     244         * }
     245         *
     246         * @param bool     $update        Whether the user is being updated rather than created.
     247         * @param int|null $id            ID of the user to be updated, or NULL if the user is being created.
     248         */
     249        $user_data = apply_filters('authentiq_pre_insert_user_data', $user_data, true, $user->data->ID);
     250
    204251        $user_data['ID'] = $user->data->ID;
    205252
     
    297344    public static function get_authentiq_id($user_id) {
    298345        global $wpdb;
     346
    299347        return get_user_meta($user_id, $wpdb->prefix . 'authentiq_id', true);
    300348    }
     
    312360    public static function get_userinfo($user_id) {
    313361        global $wpdb;
     362
    314363        return get_user_meta($user_id, $wpdb->prefix . 'authentiq_obj', true);
    315364    }
  • authentiq/trunk/package.json

    r1766274 r1775003  
    33  "title": "Authentiq WordPress plugin",
    44  "description": "Authentiq",
    5   "version": "1.0.1",
     5  "version": "1.0.2",
    66  "homepage": "https://www.authentiq.com",
    77  "repository": "https://github.com/authentiq/wordpress",
  • authentiq/trunk/public/js/authentiq-public.min.js

    r1766274 r1775003  
    11/*!
    2  * Authentiq WordPress plugin - v1.0.1
     2 * Authentiq WordPress plugin - v1.0.2
    33 *
    44 * Authentiq
Note: See TracChangeset for help on using the changeset viewer.