Shibboleth
Allows WordPress to externalize user authentication and account creation to a Shibboleth Service Provider.
Install in
This plugin is designed to support integrating your WordPress site into your existing identity management infrastructure using a Shibboleth Service Provider.
WordPress can be configured so that all standard login requests will be sent to your configured Shibboleth Identity Provider or Discovery Service. Upon successful authentication, a new WordPress account will be automatically provisioned for the user if one does not already exist. User attributes (username, first name, last name, display name, nickname, and email address) can be synchronized with your enterprise’s system of record each time the user logs into WordPress.
Finally, the user’s role within WordPress can be automatically set (and continually updated) based on any attribute Shibboleth provides. For example, you may decide to give users with an eduPersonAffiliation value of faculty the WordPress role of editor, while the eduPersonAffiliation value of student maps to the WordPress role contributor. Or you may choose to limit access to WordPress altogether using a special eduPersonEntitlement value.
Contribute on GitHub
This plugin is actively maintained by michaelryanmcneill and the WordPress community, using GitHub. Contributions are welcome, via pull request, on GitHub. Issues can be submitted on the issue tracker.
Written by Joobi from the project's own listing. See the source page
version 2.5.5 (2026-11-21)
- Security: Require Spoof Key whenever attributes are read from HTTP headers, including Custom Prefix (CVE-2026-121719) #119 (thanks Wordfence)
- Security: Enforce Disable Local Authentication for XML-RPC, REST API, and Application Passwords (CVE-2026-121718) #119 (thanks Wordfence)
version 2.5.4 (2026-06-22)
- Security: Always require Spoof Key for HTTP auth #117 (thanks @Nxploited)
- Documentation: Document the _no_account default role option #116 (thanks @beanscg, @dmrzzz)
- Bumped minimum WordPress version to 4.3 (mostly to appease plugin-check-action, but it does allow cleanup).
version 2.5.3 (2026-02-23)
- Security: Limit redirects to approved hosts #112 (thanks @Belippo, @Jefhumbe)
version 2.5.2 (2025-07-22)
- Compatibility: PHP 8.0 and newer require count() argument to be countable #108 (thanks @Gameink, @frereut)
version 2.5.1 (2025-07-21)
- Compatibility: Fix profile save on WordPress 6.6 #104 (thanks @MadtownLems)
version 2.5.0 (2024-10-11)
- Feature: Add the ability to configure multiple IdPs #101 (thanks @smbader)
version 2.4.3 (2023-10-31)
- Compatibility: Check for Shibboleth username instead of Shib-Session-ID; thanks @spfncer #97
- CI: Update GitHub Action workflows and code for WordPress coding standard v3 #94
- Cleanup: Reduced duplication via a logging helper function #95
version 2.4.2 (2023-04-07)
- Documentation: Updated Shibboleth documentation external links #92
- Accessibility: Improve labels and heading structure on admin pages #92
- Security: Improve input sanitization and use of nonces #92
- CI: Switch GitHub Action workflows to check against WordPress coding standard #92
version 2.4.1 (2023-03-20)
- Compatibility: Fix redirect_to issues on WordPress 6; thanks @masteradhoc, @caosborne89, @jakeparis #88
- Accessibility: Improve color contrast on login page #89
- Fix user profile to only show account link button to the user themself; thanks @jakeparis #90
- CI: Add GitHub Action workflows to check against WordPress-Core coding standard #91
version 2.4 (2021-08-27)
- Added hooks for hopefully rare cases where user overrides are necessary; thanks @dsXLII #74
- Better login form support for WordPress 5.3; thanks @jakeparis #76
- Spelling fixes; thanks @junaidkbr #72
- 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, andmod_shib.cpp. If you run into issues related to this change, please open an issue on GitHub.
version 2.2.1 (2020-06-18)
- Temporarily reverts conditional for .htaccess due to reported issues with cPanel environments.
version 2.2 (2020-06-17)
- 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 issue with the default to shibboleth login option in the admin; thanks to @trandrew for reporting.
version 2.1 (2018-05-16)
- Resolved an issue where in multisite users could inadvertently be sent to an unrelated subsite after logging in; thanks to @themantimeforgot for reporting and props to @jrchamp for the fix.
- 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.
- Allowed translate.wordpress.org compatibility; thanks to @eric-gagnon for reporting and props to @jrchamp for the fix.
- Resolved a conflict that caused the lost password and reset password forms to break; props @jrchamp.
- Resolves an issue where the password reset URL wasn’t being properly displayed on wp-login.php; thanks to @earnjam for reporting.
- Prevents local password resets if local authentication is disabled; thanks to @earnjam for reporting.
- Prevents local password changes if local authentication is disabled; thanks to @earnjam for reporting.
- Standardized the way we check if options are set as constants to prevent duplicate code.
- For manual account merges, ensure that email comparisons are case insensitive; thanks to @mrbrown8 for reporting.
- Introduces available logging for various actions the plugin takes.
version 2.0.2 (2018-01-17)
- Resolved an issue that caused manual linking of accounts to fail if user’s didn’t have an existing Shibboleth session.
version 2.0.1 (2018-01-17)
- Resolved a regression that prevented accounts from being created if they matched a group; thanks to @Androclese for reporting.
- 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 withHTTP_. 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 options to be defined via constants. Documentation has been added to the “FAQ” section of the WordPress.org plugins page.
- 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_userstable. 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.phpfile 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
$_SERVERinshibboleth_getenv()to handle use cases wheregetenv()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
.htaccessmodifications with awp-config.phpconstant (SHIBBOLETH_DISALLOW_FILE_MODS). - Added
shibboleth_getenv()to support various prefixed environment variables from Shibboleth, includingREDIRECT_andHTTP_; props @cjbnc and @jrchamp. - Update various deprecated WordPress functions, including
update_usermeta()andget_userdatabylogin(); props @skoranda. - Resolved undefined index when calling
shibboleth_session_initiator_url(); props @skoranda. - Added support for PHP 7.x; props to many people.
- Added
shibboleth_authenticate_userfilter; props @boonebgorges. - Resolved undefined index on
admin-options.php; props @HirotoKagotani, @jrchamp, and @stepmeul. - Resolved HTML markup mistake; props @HirotoKagotani.
- Adds an update success message to let user’s know their settings were saved, using the Settings API.
version 1.7 (2016-03-20)
- fixed a security vulnerability reported by WordPress security team
- load multisite options correctly; thanks to jdelsemme for reporting
- updated htaccess setting strings; props dericcrago
- fix reauth loop; props jrchamp
- set l10n text domain; props jrchamp
version 1.6 (2014-04-07)
- tested for compatibility with recent WordPress versions; now requires WordPress 3.3
- options screen now limited to admins; props billjojo
- new option to auto-login using Shibboleth; props billjojo
- remove workaround for MU
add_site_option; props billjojo
version 1.5 (2012-10-01)
- Bugfix: check for
Shib_Session_IDas well asShib-Session-IDout of the box. Props David Smith
version 1.4 (2010-08-30)
- tested for compatibility with WordPress 3.0
- new hooks for developers to override the default user role mapping controls
- now applies
sanitize_name()to the Shibboleth user’snicenamecolumn
version 1.3 (2009-10-02)
- required WordPress version bumped to 2.8
- much cleaner integration with WordPress authentication system
- individual user profile fields can be designated as managed by Shibboleth
- start of support for i18n. If anyone is willing to provide translations, please contact the plugin author
version 1.2 (2009-04-21)
- fix bug where shibboleth users couldn’t update their profile. (props pchapman on bug report)
- fix bug where local logins were being sent to shibboleth
version 1.1 (2009-03-16)
- cleaner integration with WordPress login form (now uses a custom action instead of hijacking the standard login action)
- add option for enterprise password change URL — shown on user profile page.
- add option for enterprise password reset URL — Shibboleth users are auto-redirected here if attempt WP password reset.
- add plugin deactivation hook to remove .htaccess rules
- add option to specify Shibboleth header for user nickname
- add filters for all user attributes and user role (allow other plugins to override these values)
- much cleaner interface on user edit admin page
- fix bug with options being overwritten in WordPress MU
version 1.0 (2009-03-14)
- now works properly with WordPress MU
- move Shibboleth menu to Site Admin for WordPress MU (props: Chris Bland)
- lots of code cleanup and documentation
version 0.1
- initial public release
Follow this listing's changes (Atom feed)