Skip to content

Commit

Permalink
Merge pull request #67 from michaelryanmcneill/2.2.2-alpha
Browse files Browse the repository at this point in the history
Adding additional conditionals to fully resolve #60
  • Loading branch information
michaelryanmcneill authored Jun 22, 2020
2 parents 971115c + 7affc23 commit 0c0f711
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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 <IfModule> 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

Expand All @@ -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 <IfModule> 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 <IfModule> conditional for .htaccess due to [reported issues with cPanel environments](https://github.com/michaelryanmcneill/shibboleth/issues/64).

Expand Down
4 changes: 2 additions & 2 deletions shibboleth.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://wordpress.org/extend/plugins/shibboleth
Description: Easily externalize user authentication to a <a href="http://shibboleth.internet2.edu">Shibboleth</a> 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
*/
Expand Down Expand Up @@ -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( '<IfModule mod_shib>', 'AuthType shibboleth', 'Require shibboleth', '</IfModule>', '<IfModule mod_shib.c>', 'AuthType shibboleth', 'Require shibboleth', '</IfModule>', '<IfModule mod_shib.cpp>', 'AuthType shibboleth', 'Require shibboleth', '</IfModule>' );
insert_with_markers( $htaccess, 'Shibboleth', $rules );
}
}
Expand Down

0 comments on commit 0c0f711

Please sign in to comment.