summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Auth
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add SFTP auth mechanism to use a password and public key for SFTPRoeland Jago Douma2018-06-071-0/+65
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* adjust external storage config format to the one used in primary storageRobin Appelman2018-02-261-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add support for v3 swift authRobin Appelman2018-02-262-2/+50
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused import statementsMorris Jobke2018-02-143-5/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-267-10/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-065-2/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle invalid ext storage backend to keep mount point visibleVincent Petry2017-09-041-0/+44
| | | | | | | | Keep mount point visible and also ext storage config visible when dealing with configs relating to storage backends or auth mechanisms that were provided by an app that is currently disabled. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* [files_external] Fix phpdocRoeland Jago Douma2017-08-011-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused memberRoeland Jago Douma2017-06-301-2/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow 2048 and 4096 bit SFTP keysRoeland Jago Douma2017-06-291-2/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use login hook credentials as fallbackChristoph Wurst2017-01-111-11/+1
| | | | | | | If no session token is available, we can use the credentials provided by the login hook. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* migrate 'password::sessioncredentials' extern storage auth to credential storeChristoph Wurst2017-01-111-32/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix casing of external storage appMorris Jobke2016-08-171-1/+1
|
* Update with robinJoas Schilling2016-07-213-3/+3
|
* Fix apps/Joas Schilling2016-07-2115-17/+32
|
* Add "Login credentials" and "User Provided"Lukas Reschke2016-06-212-0/+180
| | | | | | This adds the "Login Credentials" and "User Provided" option to the external storage implementation, it is basically done by reverting 176fb191b7ec1c742b70295ca2a315d8cc1f1ea0 from https://github.com/owncloud/core/pull/22432. This was taken from owncloud/core which is AGPL licensed.