aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_User.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Deprecate OC_User methods related to user backendsCôme Chilliet2025-04-101-18/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(Auth): ignore missing token when trying to set password-unconfirmablefwdport/48445/masterArthur Schiwon2024-10-011-6/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-201-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(Token): add FILESYSTEM scope with SCOPE_SKIP_PASSWORD_VALIDATIONArthur Schiwon2024-06-241-1/+4
| | | | | | | | | | The scope design requires scopes to be either not specified, or specified explicitely. Therefore, when setting the skip-password-validation scope for user authentication from mechanisms like SAML, we also have to set the filesystem scope, otherwise they will lack access to the filesystem. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor(Token): introduce scope constantsArthur Schiwon2024-06-051-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(Session): avoid password confirmation on SSOArthur Schiwon2024-06-051-0/+9
| | | | | | | | | | | SSO backends like SAML and OIDC tried a trick to suppress password confirmations as they are not possible by design. At least for SAML it was not reliable when existing user backends where used as user repositories. Now we are setting a special scope with the token, and also make sure that the scope is taken over when tokens are regenerated. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-35/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(logging): Restore the option to log with debug levelJoas Schilling2024-03-221-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Implement option to temporarily set the user sessionJulius Härtl2024-03-191-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(admin role): fix old and wrong way to determine whether user is adminArthur Schiwon2024-02-191-11/+11
| | | | | | | | | - fixes Settings knowing who is an admin of non-local group backend groups - obsoletes and removes a little old, deprecated code - double checks proper parameter type on Group\Manager::isAdmin - also fixes legacy OC_User code to check whether user is an admin Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* feat: rename users to account or personVincent Petry2024-02-131-1/+1
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* refactor: Repalce array_search with in_array in lib/Christoph Wurst2023-11-221-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove deprecated methods Util::writeLog and DIContainer::logCôme Chilliet2023-09-251-5/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* dispatch BeforeUserLoggedInEventMaxence Lange2023-03-011-2/+9
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* composer run cs:fixCôme Chilliet2023-01-201-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow SSO authentication to provide a user secretMichaIng2022-07-121-2/+6
| | | | | | Implementing PR #24837 from immerda Signed-off-by: MichaIng <micha@dietpi.com>
* allow use of rememberme cookies for IApacheAuth backendsArthur Schiwon2022-05-251-0/+1
| | | | | | - e.g. enables it for SAML backend Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* only setup part of the filesystem for appdata requestsRobin Appelman2022-02-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow null password in UserLoggedInEventJulien Veyssier2021-10-131-1/+1
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* fix login_credentials->password in session when loging in with apacheJulien Veyssier2021-10-131-1/+1
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Don't further setup disabled users when logging in with apacheJoas Schilling2021-09-231-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use proper methods for display name retrievalMorris Jobke2021-06-171-26/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* emit UserLoggedInEvent on apache authArthur Schiwon2021-06-011-0/+12
| | | | | | - post_login OC_Hook is barely used or listened to Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow user backends to specify a custom logout urlRoeland Jago Douma2020-07-231-0/+8
| | | | | | * Allows SSO backends to do a global logout Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use php keywords in lowercaseChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-071-0/+411
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>