diff --git a/includes/openid-connect-generic-login-form.php b/includes/openid-connect-generic-login-form.php index eb4b61b..6d2b6ba 100644 --- a/includes/openid-connect-generic-login-form.php +++ b/includes/openid-connect-generic-login-form.php @@ -40,7 +40,7 @@ class OpenID_Connect_Generic_Login_Form { function handle_redirect_login_type_auto() { if ( $GLOBALS['pagenow'] == 'wp-login.php' - && ( $this->settings->login_type == 'auto' || ! empty( $_GET['force_redirect'] ) ) + && ( $this->settings->login_type == 'auto' || ! empty( $_GET['force_redirect'] ) ) && ( ! isset( $_GET[ 'action' ] ) || $_GET[ 'action' ] !== 'logout' ) && ! isset( $_POST['wp-submit'] ) ) { diff --git a/openid-connect-generic.php b/openid-connect-generic.php index 3972f1b..1c93bc0 100644 --- a/openid-connect-generic.php +++ b/openid-connect-generic.php @@ -29,6 +29,7 @@ Notes - openid-connect-generic-user-update - 1 arg: user ID, fires when user is updated by this plugin - openid-connect-generic-update-user-using-current-claim - 2 args: fires every time an existing user logs - openid-connect-generic-redirect-user-back - 2 args: $redirect_url, $user. Allows interruption of redirect during login. + - openid-connect-generic-user-logged-in - 1 arg: $user, fires when user is logged in. User Meta - openid-connect-generic-subject-identity - the identity of the user provided by the idp diff --git a/readme.txt b/readme.txt index 17df755..37501b6 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: daggerhart Donate link: http://www.daggerhart.com/ Tags: security, login, oauth2, openidconnect, apps, authentication, autologin, sso Requires at least: 4 -Tested up to: 5.1.1 +Tested up to: 5.2.2 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -54,6 +54,7 @@ On the settings page for this plugin (Dashboard > Settings > OpenID Connect Gene * Readme fix: @thijskh - Fix syntax error in example openid-connect-generic-login-button-text * Feature: @slavicd - Allow override of the plugin by posting credentials to wp-login.php +* Feature: @gassan - New action on use login * Fix: @daggerhart - Avoid double question marks in auth url query string * Fix: @drzraf - wp-cli bootstrap must not inhibit custom rewrite rules * Syntax change: @mullikine - Change PHP keywords to comply with PSR2