Changeset 1775003
- Timestamp:
- 11/24/2017 11:58:09 PM (8 years ago)
- Location:
- authentiq/trunk
- Files:
-
- 8 edited
-
CHANGELOG.txt (modified) (1 diff)
-
README.txt (modified) (2 diffs)
-
authentiq.php (modified) (2 diffs)
-
includes/class-authentiq-options.php (modified) (1 diff)
-
includes/class-authentiq-provider.php (modified) (5 diffs)
-
includes/class-authentiq-user.php (modified) (4 diffs)
-
package.json (modified) (1 diff)
-
public/js/authentiq-public.min.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
authentiq/trunk/CHANGELOG.txt
r1766274 r1775003 1 1 == 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. 2 7 3 8 = 1.0.1 - 2017-11-14 = 4 9 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. 7 12 8 13 = 1.0.0 - 2017-10-29 = 9 14 10 * Initial public release.15 * Initial public release. -
authentiq/trunk/README.txt
r1766274 r1775003 4 4 Requires at least: 4.6 5 5 Tested up to: 4.9 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 112 112 == Changelog == 113 113 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 114 119 = 1.0.1 - 2017-11-14 = 115 120 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. 118 123 119 124 = 1.0.0 - 2017-10-29 = 120 125 121 * Initial public release.126 * Initial public release. -
authentiq/trunk/authentiq.php
r1766274 r1775003 4 4 * Plugin URI: https://wordpress.org/plugins/authentiq 5 5 * Description: Sign in (and sign up) to WordPress sites using the Authentiq ID app. Strong authentication, without the passwords. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: The Authentiq Team 8 8 * Author URI: https://www.authentiq.com … … 21 21 define('AUTHENTIQ_PLUGIN_DIR', trailingslashit(plugin_dir_path(__FILE__))); 22 22 define('AUTHENTIQ_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__))); 23 define('AUTHENTIQ_VERSION', '1.0. 1');23 define('AUTHENTIQ_VERSION', '1.0.2'); 24 24 define('AUTHENTIQ_NAME', 'authentiq'); 25 25 define('AUTHENTIQ_LANG', AUTHENTIQ_NAME); -
authentiq/trunk/includes/class-authentiq-options.php
r1754859 r1775003 52 52 } 53 53 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 */ 54 62 return apply_filters('authentiq_get_option', $options[$key], $key); 55 63 } -
authentiq/trunk/includes/class-authentiq-provider.php
r1754859 r1775003 269 269 } 270 270 271 $user = $this->handle_wp_user($userinfo, $data->id_token, $data->access_token); 272 271 273 // Perform user login to WP 272 if ($ this->handle_wp_user($userinfo, $data->id_token, $data->access_token)) {274 if ($user) { 273 275 // Default redirect URL for Authentiq 274 276 $redirect_to = $this->options->get('default_login_redirection', home_url()); … … 280 282 $redirect_to = $state_obj['redirect_to']; 281 283 } 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); 282 294 283 295 wp_safe_redirect($redirect_to); … … 449 461 * @param $access_token 450 462 * 451 * @return bool463 * @return WP_User|false WP_User object on success, false on failure 452 464 * @throws Authentiq_Login_Flow_Validation_Exception 453 465 */ … … 535 547 $this->login_user_to_wp($user, $userinfo, false, $id_token, $access_token); 536 548 537 return true;549 return $user; 538 550 539 551 } else { … … 567 579 $this->login_user_to_wp($user, $userinfo, true, $id_token, $access_token); 568 580 569 return true;581 return $user; 570 582 571 583 } catch (Authentiq_User_Exception $e) { -
authentiq/trunk/includes/class-authentiq-user.php
r1754859 r1775003 148 148 149 149 /** 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 /** 150 173 * Filters if we can create this user 151 174 * … … 202 225 // Get WP user info from Authentiq userinfo 203 226 $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 204 251 $user_data['ID'] = $user->data->ID; 205 252 … … 297 344 public static function get_authentiq_id($user_id) { 298 345 global $wpdb; 346 299 347 return get_user_meta($user_id, $wpdb->prefix . 'authentiq_id', true); 300 348 } … … 312 360 public static function get_userinfo($user_id) { 313 361 global $wpdb; 362 314 363 return get_user_meta($user_id, $wpdb->prefix . 'authentiq_obj', true); 315 364 } -
authentiq/trunk/package.json
r1766274 r1775003 3 3 "title": "Authentiq WordPress plugin", 4 4 "description": "Authentiq", 5 "version": "1.0. 1",5 "version": "1.0.2", 6 6 "homepage": "https://www.authentiq.com", 7 7 "repository": "https://github.com/authentiq/wordpress", -
authentiq/trunk/public/js/authentiq-public.min.js
r1766274 r1775003 1 1 /*! 2 * Authentiq WordPress plugin - v1.0. 12 * Authentiq WordPress plugin - v1.0.2 3 3 * 4 4 * Authentiq
Note: See TracChangeset
for help on using the changeset viewer.