aboutsummaryrefslogtreecommitdiffstats
path: root/apps/cloud_federation_api/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(ocm): `publicKey` can be disabled so capabilities do not matchfix/ocm-public-key-is-optionalFerdinand Thiessen2 days1-1/+1
| | | | | | | | When the public key feature is disabled null is returned for `publicKey`. So in this case we need to adjust the capabilities and return type of `jsonSerialize()`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(signed-request): use share owner on reshareMaxence Lange2024-12-051-1/+1
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(ocm): get details from sharedSecret from providerMaxence Lange2024-12-051-34/+35
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(signed-request): removing unstable from publicMaxence Lange2024-12-041-0/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(signatory): switch to qbmapperMaxence Lange2024-12-041-3/+3
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(ocm): simpler codeMaxence Lange2024-12-041-5/+15
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(ocm): switching to IdentityProofMaxence Lange2024-12-042-18/+32
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(ocm): signing ocm requestsMaxence Lange2024-12-042-7/+183
| | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-053-6/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-5/+3
| | | | 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>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-2/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(federation): Return the used userID to allow the inviting server to ↵Joas Schilling2024-08-132-7/+11
| | | | | | react to the famous `mapUid` result Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor(cloud_federation_api): Replace security annotations with respective ↵provokateurin2024-07-271-8/+9
| | | | | | attributes Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-275-103/+10
| | | | 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>
* refactor: Configure OpenAPI scopesprovokateurin2024-01-181-0/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-0/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* refactor: Rename OpenAPI type aliases to their namespacesjld31032023-11-022-8/+8
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(OCM): Add a way for apps to create a new IOCMResourceJoas Schilling2023-10-131-4/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(OCM): Make the OCM provider stateful so apps can add resourcesJoas Schilling2023-10-131-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* ocm controllerMaxence Lange2023-09-202-73/+48
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* cloud_federation_api: Add OpenAPI specjld31032023-07-133-24/+96
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* cloud_federation_api: Fix bad request responsesjld31032023-07-131-14/+33
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(ocp): More specific type for ICapabilities::getCapabilitiesChristoph Wurst2023-07-031-3/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Correctly log failed attemptsJoas Schilling2022-06-131-4/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Always log errors from sending federation api requests to ease debuggingJoas Schilling2022-06-071-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-8/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move requesthandler controller to LoggerInterfaceRoeland Jago Douma2021-03-101-3/+3
| | | | | | | | * LoggerInterface * executeUpdate * log exception when there is one (just so we ahve the trace) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move cloud_federation_api to bootstrap mechanismMorris Jobke2020-07-081-4/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* 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-9/+3
| | | | | | | | | | | | | | | 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>
* Remove spaces after method or function callChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-2/+1
| | | | | | For PSR2 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>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-054-4/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-224-6/+1
| | | | | | | | | | | * 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>
* adjust json to match the definitionBjoern Schiessle2019-02-201-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* implement federated group sharesBjoern Schiessle2018-07-112-13/+41
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add support for different share typesBjoern Schiessle2018-07-021-24/+15
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* let the actual federated share provider check if incoming/outgoing shares ↵Bjoern Schiessle2018-07-021-13/+0
| | | | | | are enabled for the specific resource type Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send the display name back after a federated share was receivedBjoern Schiessle2018-07-021-1/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* implement config checkBjoern Schiessle2018-07-021-3/+23
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* some minor fixes and clode cleanupBjoern Schiessle2018-07-021-1/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* replace \OCP\Federation\Exception\ShareNotFoundException with the generic ↵Bjoern Schiessle2018-07-021-2/+2
| | | | | | \OCP\Share\Exception\ShareNotFound exception Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>