-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Session ID header override #97
Conversation
Hi @spfncer! Thank you for using this plugin and for contributing back a change that addresses an issue you encountered. Now that you've highlighted the check in the plugin for Instead, maybe we should be checking for the one environment variable that we actually need and using that in place of Lines 588 to 592 in 7e94bd2
I think that may simplify the solution significantly while leveraging the configuration that already exists. Does that work in your environment? |
Good morning @jrchamp! Yes that worked; I modified the first few lines of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! By using the same method for checking that a user can log in, this removes another potential way that the login method could fail.
Hello, for what it is worth, this created an issue for me. My WP instance is behind a proxy and uses HTTP Headers. Now the Shibboleth plugin uses EPPN for authentication but also uses MAIL if EPPN is not found. In our case we mapped EPPN on the proxy to a different variable, i.e. it was not accessible for the plugin, but we never noticed since the plugin then uses MAIL. SHIB-Session-ID worked as intended. This change broke our installation. After I found the missing EPPN, it was easy to fix, but I just want to point out that you probably want to check for EPPN or MAIL to account for an active session, since you use either to authenticate. Otherwise thanks for the very useful plugin! |
Hi there! I've been working for a while trying to configure this plugin for a site at the University of Florida, but we continued running into an infinite redirect upon authentication. Through debugging, I found that our Session ID header was different than all the ones this plugin checked for, but the plugin does not currently provide a means to override the default Session ID header -- causing the infinite redirect. I've added that override feature in this PR, which can be controlled via a PHP constant or wp-admin option (like existing options). If the new option is left blank, it will continue using the default
Shib-Session-ID
header.I've tested this on our test site, and it appears to work as intended. It may be worth a bit of testing to ensure it does not disrupt other setups.
Thank you to the team that maintains this repo! I hope this feature can help more people use this great plugin.