Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We're using the masquerade-module in an environment with SSO/Shibboleth. Those modules (and other SSO-implementations I guess) are using hook_user_logout to redirect the user to a certain logout-page to disable the SSO-session.
In this setup you have to re-login every time you try to switch the user, which is... annoying.
To solve this I've added a configuration option to disable the call of hook_user_logout.
Comment | File | Size | Author |
---|---|---|---|
#2 | masquerade-disable_hook_user_logout-2568789-1-D7.patch | 1.51 KB | phreaknerd |
Comments
Comment #2
phreaknerd CreditAttribution: phreaknerd commentedThe patch.
Comment #3
phreaknerd CreditAttribution: phreaknerd commentedComment #4
andypostThe primary idea of the module that we do full logout/login to masquerade
if you skip any of hooks - it's not a logout anymore
+1 to wont fix
this will not work
Comment #5
kala4ekThis variable may be disabled by default...
Comment #6
hgoto CreditAttribution: hgoto as a volunteer commentedI agree with andypost. If the logout hooks are skipped, unexpected behaviors can easily happen, I think...