diff --git a/openid-connect-generic.php b/openid-connect-generic.php index 5468a8e..6f927f3 100644 --- a/openid-connect-generic.php +++ b/openid-connect-generic.php @@ -145,7 +145,7 @@ class OpenID_Connect_Generic { global $pagenow; // avoid redirect loop - if ( $pagenow != 'wp-login.php' && ! isset( $_GET['loggedout'] ) ) { + if ( $pagenow != 'wp-login.php' && ! isset( $_GET['loggedout'] ) && ! isset( $_GET['login-error'] ) ) { wp_redirect( wp_login_url() ); exit; } diff --git a/readme.md b/readme.md index 9db8de8..a022d90 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ A simple client that provides SSO or opt-in authentication against a generic OAu This plugin allows to authenticate users against OpenID Connect OAuth2 API with Authorization Code Flow. Once installed, it can be configured to automatically authenticate users (SSO), or provide a "Login with OpenID Connect" -button on the login form. After consent has been obtained, an exiting user is automatically logged into WordPress, while +button on the login form. After consent has been obtained, an existing user is automatically logged into WordPress, while new users are created in WordPress database. Much of the documentation can be found on the Settings > OpenID Connect Generic dashboard page. diff --git a/readme.txt b/readme.txt index d3ed385..b895270 100644 --- a/readme.txt +++ b/readme.txt @@ -14,7 +14,7 @@ A simple client that provides SSO or opt-in authentication against a generic OAu This plugin allows to authenticate users against OpenID Connect OAuth2 API with Authorization Code Flow. Once installed, it can be configured to automatically authenticate users (SSO), or provide a "Login with OpenID Connect" -button on the login form. After consent has been obtained, an exiting user is automatically logged into WordPress, while +button on the login form. After consent has been obtained, an existing user is automatically logged into WordPress, while new users are created in WordPress database. Much of the documentation can be found on the Settings > OpenID Connect Generic dashboard page.