aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Federation
Commit message (Collapse)AuthorAgeFilesLines
* fix(federation): allows equal signs in federation idfix/noid/allows-some-char-from-federationidMaxence Lange2025-04-221-1/+4
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(federation): Fix returning "no display name" after cache resultbugfix/noid/fix-cached-return-of-display-nameJoas Schilling2025-04-101-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(federation): Don't load the addressbook when resolving a cloud IDperf/noid/dont-load-addressbook-on-resolving-cloudidJoas Schilling2025-04-092-28/+30
| | | | | | Instead we delay the lookup of the display name until it is actually used Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: copy sharedBy[DisplayName] to sender[DisplayName], fixes #36340Michiel de Jong2025-01-291-0/+4
| | | | Signed-off-by: Michiel de Jong <michiel@pondersource.com>
* fix(ocm): simpler codeMaxence Lange2024-12-041-0/+6
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(ocm): switching to IdentityProofMaxence Lange2024-12-041-64/+45
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(ocm): signing ocm requestsMaxence Lange2024-12-041-18/+55
| | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: Use more gender neutral languageprovokateurin2024-10-141-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(federation): Do not overwrite certificate bundlefix/federation-certificate-storeJulius Härtl2024-09-201-24/+21
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-193-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(federation): Fix missing protocol on CloudID remoteJoas Schilling2024-06-271-3/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-246-124/+12
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(federation): ICloudId->getRemote() should contain the protocolJoas Schilling2024-04-021-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(federation): Fix creating local cloudIds with http:// protocolJoas Schilling2024-03-251-13/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(federation): Allow cloud federation providers to handle unsuccessful ↵Joas Schilling2024-02-281-0/+61
| | | | | | | | return codes Otherwise they are put to retry and will immediately trigger bruteforce protection infinitely Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-10/+10
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* ocm controllerMaxence Lange2023-09-201-73/+27
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* displayname on federated sharesMaxence Lange2023-06-281-4/+5
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-4/+4
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* composer run cs:fixCôme Chilliet2023-01-202-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Validate if the user part of a "cloud id" can even be a valid user idJoas Schilling2022-12-091-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* cache cloud id data in CloudIdManagerRobin Appelman2022-08-311-6/+73
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Always log errors from sending federation api requests to ease debuggingJoas Schilling2022-06-071-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-7/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Limit more contact searchesJoas Schilling2021-12-081-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to get a local cloud id without going through the contacts managerJulius Härtl2021-07-141-11/+34
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Correctly check the reception of a remote feedbackLouis Chemineau2021-06-091-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-12/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* [Fix #24682]: ensure federation cloud id is retruned if FN property not foundGuillaume Virlet2020-12-131-1/+7
| | | | Signed-off-by: Guillaume Virlet <github@virlet.org>
* send expected format of cloud idArthur Schiwon2020-11-241-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* set the display name of federated sharees from addressbookArthur Schiwon2020-11-242-12/+46
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update share type constant usageJoas Schilling2020-06-241-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-10/+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 elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-056-6/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+0
| | | | | | | | | | | * 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>
* According to the OCM specification the body needs to be JSON encodedBjoern Schiessle2019-02-191-3/+4
| | | | | | see: https://github.com/GEANT/OCM-API/pull/37 Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* translate nextcloud share types to OCM share typesBjoern Schiessle2018-07-111-1/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* log error messgageBjoern Schiessle2018-07-111-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* cache results from ocm end-point discoveryBjoern Schiessle2018-07-021-0/+11
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix return type from send shareBjoern Schiessle2018-07-021-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* look for correct OCM permissionsBjoern Schiessle2018-07-021-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* cleanup variable naming, it is actually a resource typeBjoern Schiessle2018-07-021-12/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* some minor fixes and clode cleanupBjoern Schiessle2018-07-022-1/+8
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send reshare over OCM APIBjoern Schiessle2018-07-021-3/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>