aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User/Backend
Commit message (Collapse)AuthorAgeFilesLines
* fix: Add missing interface from previous commit and update autoloadersCôme Chilliet2025-01-141-0/+23
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(updatenotification): Add a limit to user count from LDAP so save ↵Côme Chilliet2025-01-141-0/+1
| | | | | | performances Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(IGetRealUIDBackend): Fix typo in doc blockFerdinand Thiessen2024-09-021-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* docs: Add info for the password hashesChristopher Ng2024-07-081-0/+5
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat: Add IPasswordHashBackendChristopher Ng2024-07-081-0/+25
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2415-288/+30
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat: Add back searching in disabled user listCôme Chilliet2024-05-231-1/+2
| | | | | | | | When disabled users where moved to their own endpoint we overlooked search, so adding it back. The search is done case-insensitive in uid and display name. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Invert parameter order in getDisabledUserList to be consistentCôme Chilliet2023-11-301-1/+1
| | | | | | | This matches what was done in the calls and so fixes getting disabled user list when there are several backends returning disabled users. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add method to list disabled users to IProvideEnabledStateBackendCôme Chilliet2023-06-291-0/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix since annotations and add boolean return type for setUserEnabledCôme Chilliet2023-06-201-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add user enabled state backend featureCôme Chilliet2023-05-231-0/+47
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* ci: migrate ocp since checker to psalmDaniel Kesselberg2023-01-241-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* composer run cs:fixCôme Chilliet2023-01-2010-10/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into fix/clean-ldap-access-factory-usageCôme Chilliet2022-11-211-0/+39
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Update lib/public/User/Backend/ICountMappedUsersBackend.phpCôme Chilliet2022-10-251-2/+2
| | | | | | | | Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Add missing fileCôme Chilliet2022-10-241-0/+39
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix return type for countUsers methodCôme Chilliet2022-10-251-2/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix creation of new user and display the correct error messageChristopher Ng2022-08-221-0/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix psalm issues related to the user backendCarl Schwan2022-05-201-1/+1
| | | | | | | | | | | | | - Reflect the actual return value returned by the implementation in the the interface. E.g. IUser|bool -> IUser|false - Remove $hasLoggedIn parameter from private countUser implementation. Replace the two call with the equivalent countSeenUser - getBackend is nuallable, add this to the interface - Use backend interface to make psalm happy about call to undefined methods. Also helps with getting rid at some point of the old implementActions Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0413-26/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Improve search results when only phonebook-matches can we autocompletedJoas Schilling2021-03-172-1/+44
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-1/+1
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow user backends to specify a custom logout urlRoeland Jago Douma2020-07-231-0/+43
| | | | | | * Allows SSO backends to do a global logout Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0511-29/+52
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Get the proper UIDRoeland Jago Douma2019-08-131-0/+44
| | | | | | | | | | | | | | | | | | | | | Some user backends (like the database backend) allow us to obtain a user case insensitive. However the UID itself is case sensitive. Example: * create a user User1 * login as User1 - This results the data/User1 folder to be created etc * now have some code somewhere that obtains the userFolder (from IRootFolder) but pas in 'uSER1' as uid - The code will check if that is a valid user. And in this case it is since User1 and uSER1 both map to the same user - However the the UID in the user object is used for the folder a new folder fill be create data/uSER1 With this PR this is avoided now. Since we obtain the real UID casing in the backend before creating the user object. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* New user backend interface to check if a user can confirm passwordsRoeland Jago Douma2018-11-021-0/+36
| | | | | | | On some backends (saml for example) users can't revalidate their passwords as Nextcloud has no way to do verify it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Document parametersRoeland Jago Douma2018-03-229-0/+30
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to ABackendRoeland Jago Douma2018-03-221-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove type declarations where not yet possibleRoeland Jago Douma2018-03-224-4/+4
| | | | | | Because we don't return consistent things yet :( Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix phpdocRoeland Jago Douma2018-03-229-0/+62
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add abstract bakend to still be backwards compatible with the old logicRoeland Jago Douma2018-03-221-0/+62
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add interfaces for user backend functionalityRoeland Jago Douma2018-03-228-0/+232
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>