-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
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 <[email protected]>
f870326
to
980e8e2
Compare
/backport to stable26 |
legacy code ...
This fix an issue with gss+saml (regreation post migration to
IEventDispatcher
as 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