-
Notifications
You must be signed in to change notification settings - Fork 2.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
Use PHP interfaces for user backends (and not implementsAction magic) #23421
Comments
with 9.1 we want to introduce the central user account table - this will have major impact on the user backend interfaces - good point in time to cleanup |
move to 9.2 |
@DeepDiver1975 @MorrisJobke @PVince81 Our implementation will retrieve users and groups from a custom service. Thanks in advance |
@labkode for user backend go this way: class CernUserBackend implements \OCP\IUserBackend implements \OCP\UserBackend {
} |
and for groups backend: class CernGroupBackend implements \OCP\GroupInterface {
} |
@DeepDiver1975 Thanks a lot Thomas.
Is this the correct way to include our implementation? |
This is one option - but you can also use the config option - see https://github.com/owncloud/apps/tree/master/user_external#ftp |
Thanks Thomas, that makes much more sense |
@DeepDiver1975 Hi Thomas, the user_external for users works really well out of the box, is there anything similar to plug-in our group backend with the same smoothness to avoid |
no - not yet 🙈 |
@jvillafanez oh, look what I found... as we were just talking about this in #26750 I see at least three interfaces:
|
I don't see an use case where different interfaces are needed for this. If you are able to create a group, you should be able to populate it. Although you could add members to existing groups even though you can't create new groups... 🤔 In any case, the naming and the inheritance tree (if any) must be as clear as possible. |
missed opportunity to cleanup. Moving to backlog for now unless someone else finds time to clean this up as part of another task. |
This issue has been automatically closed. |
OCP\UserInterface
(which should be named UserBackend),OC_User_Backend
and some magic methods that are defined here:core/lib/private/user/backend.php
Lines 83 to 92 in 933f60e
We should move all of the
implementsAction
magic into proper interfaces that then could be checked on a language level rather than some magic methods that return a binary string to announce what is implemented.cc @blizzz @butonic We talked about this already.
The text was updated successfully, but these errors were encountered: