aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Auth
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_external): Mark password fields for LoginCredentials and ↵fix/files_external/hidden-password-fieldsprovokateurin2025-05-052-2/+6
| | | | | | SessionCredentials as hidden and optional Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_external): Convert VALUE_HIDDEN to FLAG_HIDDEN to allow combining ↵provokateurin2025-05-053-6/+12
| | | | | | VALUE_PASSWORD and FLAG_HIDDEN Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_external): Move definition parameter to the correct placefix/files_external/definition-parameterprovokateurin2025-02-252-1/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-218-62/+32
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Use hashed password in files_external settingsartonge/feat/compare_hashed_password_when_updating_global_cred_in_files_externalLouis Chemineau2024-09-251-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix unmodified placeholder replacing the actual value when updatingDaniel Calviño Sánchez2024-09-042-0/+12
| | | | | | | | | | | | | | When updating global storages and user storages a property is not updated by "StoragesService::updateStorage()" if the value matches the unmodified placeholder. However, userglobal storages are not updated through the "StoragesService"; as only the authentication mechanism is updated it is directly done with "saveBackendOptions()" in "IUserProvided" or "UserGlobalAuth". Due to this the unmodified placeholder value needs to be explicitly checked in those cases and replaced by the actual value (note that in this case it is not possible to just skip updating a specific property). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-0621-424/+57
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: Improve phpdoc typing to silence psalm errorsCôme Chilliet2024-04-027-0/+21
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-027-7/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: replace `Account name` by `Login`John Molakvoæ2024-02-137-8/+8
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-138-10/+10
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(files_external): migrate to vueJohn Molakvoæ2023-08-011-0/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* check the username when doing external storage session authRobin Appelman2023-05-111-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add commentsCarl Schwan2022-12-052-0/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix migration to non-empty secretCarl Schwan2022-12-052-2/+8
| | | | | | Add a fallback for empty keys Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* More type safetyCarl Schwan2022-10-171-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add corresponding interface to traitCarl Schwan2022-10-171-1/+3
| | | | | | | Since we can't specify that we want a class implementing a trait yet in PHP Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* l10n: Change to a capital letterValdnet2022-01-211-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* add changes from Sebastian/dassIT and move default_realm to backendArthur Schiwon2022-01-201-1/+8
| | | | | | | | | - Sebastian added the switch depending on the preg_match result and with it the fall back to login credentials - I turned default_realm to a backend option (was previously suggested as system config key) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add KerberosApacheAuth support to files_externalArthur Schiwon2022-01-201-0/+46
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-3/+1
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #26397 from nextcloud/external-storage-login-ldap-publicblizzz2021-06-071-3/+34
|\ | | | | allow using any ldap property as login name when using external storage login credentials
| * allow using any ldap property as login name when using external storage ↵Robin Appelman2021-06-031-3/+34
| | | | | | | | | | | | login credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0420-24/+6
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Don't save credentials of another userJoas Schilling2021-01-201-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "allow using any ldap property as login name when using login ↵blizzz2021-01-071-38/+2
| | | | credentials"
* allow using any ldap property as login name when using external storage ↵Robin Appelman2021-01-041-2/+38
| | | | | | login credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-2/+2
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move event listener to dedicated classMorris Jobke2020-07-301-22/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* update saved credentials on password changeRobin Appelman2020-07-301-1/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Only save login credentials in database once there is an external storage ↵Robin Appelman2020-07-301-23/+29
| | | | | | that needs it Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-297-0/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix issues with Keystone auth v3 in files_external appJulien Lutran2020-04-151-0/+1
| | | | Signed-off-by: Julien Lutran <julien.lutran@corp.ovh.com>
* Add visibility to all constantsChristoph Wurst2020-04-105-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1017-31/+1
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use placeholder values for password fields in external storage webuiRobin Appelman2020-03-121-1/+0
| | | | | | | | | | This prevents the password from being sent to the webui. While an admin will always be able to retrieve the passwords (as they can do arbitrairy code execution by design) this prevents casual password snooping Signed-off-by: Robin Appelman <robin@icewind.nl>
* do not overwrite global user auth credentials with empty valuesArthur Schiwon2020-02-061-0/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2019-12-0520-22/+55
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-2216-56/+57
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* allow setting user provided global credentials trough credentials popupRobin Appelman2019-09-091-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow admin configured mounts to use user configured global credentialsRobin Appelman2019-09-091-0/+66
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add support for using kerberos ticket to authenticate to smb serversRobin Appelman2018-06-222-0/+35
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>