General cleanup to better align with the WordPress Coding Standards #80
version 2.3 (2020-08-17)
Implementing a fallback option for the “Shibboleth Attribute Access Method”. For example, if your web server returns redirected environment variables, but occasionally returns standard environment variables, you would want to enable this option.
Removing deprecated create_function() from use.
Bumped minimum PHP and WordPress versions to 5.6 and 4.0 respectively.
Greatly improved the handling of managed fields and cleaned up options-user.php.
version 2.2.2 (2020-06-22)
Re-implementing conditional for .htaccess to protect against the Shibboleth Apache module not being installed; thanks to @jrchamp for reporting. 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.
Implementing conditional for .htaccess to protect against the Shibboleth Apache module not being installed; thanks to @jrchamp for reporting.
Added an option to disable account creation if no mapped roles or default roles exist; props @dandalpiaz.
Improve the Shibboleth login link so that when it shows up on a normal request it will correctly still be a login link and will redirect back to the page that showed the login link; props @Alhrath.
version 2.1.1 (2018-05-16)
Minor code cleanup for disabling authentication and passsword resets; props @jrchamp.
Resolved a minor problem where setting the SHIBBOLETH_LOGGING constant on PHP 5.5 or below would not work in the administrative interface; props @jrchamp.
Resolved an regression that prevented users from authenticating if shibboleth_default_role is blank and shibboleth_create_accounts is enabled; props @jrchamp.
Cleaned up the shibboleth_authenticate_user function; props @jrchamp.
Resolved an issue where assets were not being properly included in the WordPress.org packaged plugin.
version 2.0 (2018-01-16)
Changed the way we check for Shibboleth attributes. Now, by default, we only check standard environment variables for Shibboleth attributes. 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 instead select the option specific to your server configuration. Selecting the “Redirected Environment Variables” option will look for attributes in environment variables prefixed with REDIRECT_ while selecting the “HTTP Headers” option will look for attributes in environment variables (populated by HTTP Headers) prefixed with HTTP_. Most users should be fine leaving the default option selected; thanks to @jrchamp for reporting.
Changed the default behavior to not automatically update user roles.
Allow automatic and manual merging of local WordPress accounts with Shibboleth accounts. This prevents a collision from occurring if the Shibboleth email attribute matches an email that already exists in the wp_users table. This is configurable by an administrator.
Changed the options page to utilize a more modern design centered around tabs.
Added signifcant customizations to the login page to bring it more in-line with WordPress.com Single Sign On.
Disabled the sending of an email notifying user’s that their email had changed when the Shibboleth plugin updates user attributes to prevent user confusion; props @jrchamp.
Removed the shibboleth-mu.php file as it is no longer relevant.
version 1.8.1 (2017-09-08)
Use sanitize_title rather than sanitize_user to sanitize user_nicename; props @jrchamp.
Changed activation and deactivation hooks to use __FILE__; props @jrchamp.
Reverted to using $_SERVER in shibboleth_getenv() to handle use cases where getenv() doesn’t return data; thanks to @jmdemuth for reporting.
version 1.8 (2017-08-23)
The Shibboleth plugin is now being maintained by michaelryanmcneill. Contributions are welcome on GitHub!
Adding the ability to disable .htaccess modifications with a wp-config.php constant (SHIBBOLETH_DISALLOW_FILE_MODS).
Added shibboleth_getenv() to support various prefixed environment variables from Shibboleth, includingREDIRECT_ and HTTP_; props @cjbnc and @jrchamp.
Update various deprecated WordPress functions, including update_usermeta() and get_userdatabylogin(); props @skoranda.
Resolved undefined index when calling shibboleth_session_initiator_url(); props @skoranda.