Logout Redirect URL Handling for Auto Login Setting & TravisCI Matrix Build Changes (#261)

- Fixes #260 by changing conditional check for logout redirect URL handling for Auto Login setting.
- Limits TravisCI matrix builds for pull requests & feature/fix branches.
isekai
Tim Nolte 4 years ago committed by GitHub
parent 68f7a38adb
commit 131e36b2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,15 +51,19 @@ matrix:
php: 7.3
env: WP_MODE=single WP_VERSION=5.6.* PHP_UNIT=1
- name: Preferred Minimum requirements
if: (branch IN (dev, main) OR branch =~ /^dev\-release\/.*$/) AND NOT type = pull_request
php: 7.2
env: WP_MODE=single WP_VERSION=5.4.* PHP_UNIT=1
- name: Minimum requirements
if: (branch IN (dev, main) OR branch =~ /^dev\-release\/.*$/) AND NOT type = pull_request
php: 7.1
env: WP_MODE=single WP_VERSION=5.3.* PHP_UNIT=1
- name: Bleeding Edge
if: (branch IN (dev, main) OR branch =~ /^dev\-release\/.*$/) AND NOT type = pull_request
php: 7.4
env: WP_MODE=single WP_VERSION=dev-master PHP_UNIT=1
- name: Multisite Compatibility
if: (branch IN (dev, main) OR branch =~ /^dev\-release\/.*$/) AND NOT type = pull_request
php: 7.3
env: WP_MODE=multi WP_VERSION=5.6.* PHP_UNIT=1
allow_failures:

@ -4,6 +4,7 @@
* Fix: @timnolte - Prevent SSO redirect on password protected posts.
* Fix: @timnolte - CI/CD build issues.
* Fix: @timnolte - Invalid redirect handling on logout for Auto Login setting.
3.8.0

@ -278,8 +278,9 @@ class OpenID_Connect_Generic_Client_Wrapper {
$url .= $query ? '&' : '?';
// Prevent redirect back to the IDP when logging out in auto mode.
if ( 'auto' === $this->settings->login_type && 'wp-login.php?loggedout=true' === $redirect_url ) {
$redirect_url = '';
if ( 'auto' === $this->settings->login_type && strpos( $redirect_url, 'wp-login.php?loggedout=true' ) ) {
// By default redirect back to the site home.
$redirect_url = home_url();
}
$token_response = $user->get( 'openid-connect-generic-last-token-response' );

@ -55,6 +55,7 @@ On the settings page for this plugin (Dashboard > Settings > OpenID Connect Gene
* Fix: @timnolte - Prevent SSO redirect on password protected posts.
* Fix: @timnolte - CI/CD build issues.
* Fix: @timnolte - Invalid redirect handling on logout for Auto Login setting.
= 3.8.0 =

Loading…
Cancel
Save