diff --git a/readme.txt b/readme.txt index 2aa5401..5c0c643 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: michaelryanmcneill, willnorris, mitchoyoshitaka, jrchamp, dericcra Tags: shibboleth, authentication, login, saml Requires at least: 3.3 Tested up to: 5.4.2 -Stable tag: 2.2.1 +Stable tag: 2.2.2 Allows WordPress to externalize user authentication and account creation to a Shibboleth Service Provider. @@ -176,6 +176,9 @@ Yes, the plugin allows for all settings to be controlled via constants in `wp-co 3. Assign users into WordPress roles based on arbitrary data provided by Shibboleth == Upgrade Notice == += 2.2.2 = +This update re-implements a previously reverted conditional for three aliases of the Shibboleth Apache module: `mod_shib`, `mod_shib.c`, and `mod_shib.cpp`. If you run into issues related to this change, please open an issue on [GitHub](https://github.com/michaelryanmcneill/shibboleth/issues). + = 2.0.2 = This update brings with it a major change to the way Shibboleth attributes are accessed from versions less than 2.0. For most users, no additional configuration will be necessary. If you are using a specialized server configuration, such as a Shibboleth Service Provider on a reverse proxy or a server configuration that results in environment variables being sent with the prefix REDIRECT_, you should see the changelog for additional details: https://wordpress.org/plugins/shibboleth/#developers @@ -186,6 +189,9 @@ This update brings with it a major change to the way Shibboleth attributes are a This update brings with it a major change to the way Shibboleth attributes are accessed. For most users, no additional configuration will be necessary. If you are using a specialized server configuration, such as a Shibboleth Service Provider on a reverse proxy or a server configuration that results in environment variables being sent with the prefix REDIRECT_, you should see the changelog for additional details: https://wordpress.org/plugins/shibboleth/#developers == Changelog == += version 2.2.2 (2020-06-XX) = + - Re-implementing conditional for .htaccess to protect against the Shibboleth Apache module not being installed; [thanks to @jrchamp for reporting](https://github.com/michaelryanmcneill/shibboleth/issues/60). This change includes conditionals for `mod_shib`, `mod_shib.c`, and `mod_shib.cpp`. If you run into issues related to this change, please open an issue on [GitHub](https://github.com/michaelryanmcneill/shibboleth/issues). + = version 2.2.1 (2020-06-18) = - Temporarily reverts conditional for .htaccess due to [reported issues with cPanel environments](https://github.com/michaelryanmcneill/shibboleth/issues/64). diff --git a/shibboleth.php b/shibboleth.php index c02da41..91de89d 100644 --- a/shibboleth.php +++ b/shibboleth.php @@ -4,7 +4,7 @@ Plugin URI: http://wordpress.org/extend/plugins/shibboleth Description: Easily externalize user authentication to a Shibboleth Service Provider Author: Michael McNeill, mitcho (Michael 芳貴 Erlewine), Will Norris - Version: 2.2.1 + Version: 2.2.2 License: Apache 2 (http://www.apache.org/licenses/LICENSE-2.0.html) Text Domain: shibboleth */ @@ -901,7 +901,7 @@ function shibboleth_insert_htaccess() { if ( got_mod_rewrite() && ! $disabled ) { $htaccess = get_home_path() . '.htaccess'; - $rules = array( 'AuthType shibboleth', 'Require shibboleth' ); + $rules = array( '', 'AuthType shibboleth', 'Require shibboleth', '', '', 'AuthType shibboleth', 'Require shibboleth', '', '', 'AuthType shibboleth', 'Require shibboleth', '' ); insert_with_markers( $htaccess, 'Shibboleth', $rules ); } }