dispatch BeforeUserLoggedInEvent#36883
Conversation
ef0e48a to
e1a65ca
Compare
|
/backport to stable25 |
e1a65ca to
f870326
Compare
|
Why is the IApacheBackend needed? |
|
It used to be that legacy hooks were listened to in the server, and modern style ones fired in those cases. Here it would be a listener against `OC_Hook::emit("OC_User", "pre_login", ["run" => &$run, "uid" => $uid, 'backend' => $backend]);'. Is it not the case (anymore)? |
|
example of Currently, the modern style hook were not triggered during the sso auth because it was missing. |
It’s weird actually there is https://github.com/nextcloud/server/blob/master/lib/private/Server.php#L615-L621 But it’s the wrong way around, it listens to Not sure what the clean fix is here, events are a mess. |
Yes, my first thought was to replace the current This event will be catched by nextcloud/globalsiteselector#89 |
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
f870326 to
980e8e2
Compare
|
/backport to stable26 |
legacy code ...
This fix an issue with gss+saml (regreation post migration to
IEventDispatcheras login event is not detected anymore).The idea is to copy the normal process available in https://github.com/nextcloud/server/blob/master/lib/private/Server.php#L615-L621 and implement it on login process on SSO