aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
Commit message (Collapse)AuthorAgeFilesLines
* chore(federation): cleanup SettingsController and legacy AddServerMiddlewarefeat/auto-accept-trusted-serverskjnldsv2025-01-094-118/+54
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(federation): add trusted server auto accept integration testsskjnldsv2025-01-091-23/+79
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(federation): settings layout and error handlingskjnldsv2025-01-091-15/+32
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(federatedfilesharing): auto-accept shares from trusted serversskjnldsv2025-01-092-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(federation): comply to `sharing.federation.allowSelfSignedCertificates`skjnldsv2025-01-094-2/+9
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-2112-120/+53
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(BackgroundJobs): Adjust intervals and time sensitivitiesprovokateurin2024-10-081-0/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-202-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-196-7/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-253-9/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(federation): always set server status to OK after successful runsPablo Zimdahl2024-08-223-0/+6
| | | | | | | | | | | | Previously if a server status got set to failure, it stayed that way until an addressbook-sync found changes. Now the server status is set to OK after each successful sync check (if that's not the case already), regardless of addressbook changes. This change also includes two new logging statements, which could help next time someone debugs this. Signed-off-by: Pablo Zimdahl <pablo@nextcloud.com>
* refactor(federation): Replace security annotations with respective attributesprovokateurin2024-07-282-20/+20
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2915-333/+53
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(federation): give some time to prepare both serversArthur Schiwon2024-04-111-2/+8
| | | | | | | | | | | - when this background job runs, while the current server was not being added as trusted_server in the other instance, yet, the secret sharing would not be attempted again, without visual feedback. - the change allows 5 attempts, which gives more than 20minutes to complete. More do not really help as the endpoint is brute force protected. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: Add bruteforce protection to federation endpointJoas Schilling2024-02-211-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Fix missing template parameter for IEventListenerCôme Chilliet2024-01-301-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Configure OpenAPI scopesprovokateurin2024-01-181-0/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* perf: Only query the db once for trusted serversJulius Härtl2023-12-051-2/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-238-17/+16
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-283-3/+3
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* federation: Add OpenAPI specjld31032023-07-101-4/+29
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Migrate federation application to LoggerInterfaceCôme Chilliet2023-06-261-61/+28
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(federation): Log address book sync exceptionsChristoph Wurst2023-05-041-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #33104 from nextcloud/enhancement/add-logging-federationblizzz2022-10-012-2/+13
|\ | | | | Federation - add logging, update the server status if sync fails
| * Add logging to federationAnna Larch2022-07-272-2/+13
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | 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>
* | Port existing server code to new interfaceCarl Schwan2022-08-081-22/+9
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix many issues with the testsCarl Schwan2022-06-282-2/+5
| | | | | | | - Return type were not correct - willReturn and with confusion Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup CardDav SyncServiceCarl Schwan2022-06-241-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Summer cleanup of the federation appCarl Schwan2022-06-2411-412/+185
| | | | | | | | | | - Use IEventDispatcher instead of deprecated symfony dispatcher - Use LoggerInterface where possible - Use php 7.4 properties - Add type hinting where possible - Move federation hooks to a seperate listener Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add support for Delegation Settings for more appsCarl Schwan2021-10-152-6/+28
| | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate HintException to OCPGary Kim2021-06-304-4/+4
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0415-21/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* More cleaning after auto-add removalJoas Schilling2021-04-273-70/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* No longer add trusted servers on federated share creationRoeland Jago Douma2021-04-263-73/+0
| | | | | | | | It was disabled by default for ages. And often resulted in unwanted behavior. If admins want trusted servers they just have to do it manually. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix a few RedundantCastRoeland Jago Douma2021-03-011-1/+1
| | | | | | | Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-121-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-1/+1
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersChristoph Wurst2020-12-302-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Drop all dead packagesChristoph Wurst2020-12-232-14/+2
| | | | | | | | Apparently we have plenty of leftover of previous sub-dependencies. Composer automatically dumps those with any future dependency update, so I'm dropping them in an atomic step. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add missing parent::__construct() calls to JobsJoas Schilling2020-12-142-14/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use proper OCP\BackgroundJobs\JobRoeland Jago Douma2020-11-252-8/+6
| | | | | | And typehunt the IJobList Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the function signatures of the backgroundjob matchRoeland Jago Douma2020-10-262-2/+2
| | | | | | Else PHP says no Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix PSR-4 compatible namespaceJoas Schilling2020-07-272-0/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move federated_share_added into a typed eventMorris Jobke2020-07-233-40/+131
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>