summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
Commit message (Collapse)AuthorAgeFilesLines
* Also always return in app commandsJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-297-1/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1012-21/+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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0514-16/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-2211-10/+6
| | | | | | | | | | | * 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>
* A failing federation sync job is not an errorRoeland Jago Douma2018-08-061-1/+1
| | | | | | This is an INFO warning at best. Else it spams the logs continiously. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-264-5/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve error reporting and move format parameter to the optionsBjoern Schiessle2018-04-253-32/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove unused import statementsMorris Jobke2018-02-143-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-292-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-234-5/+24
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Catch the errors related to untrusted self signed certificates for federationRoeland Jago Douma2017-12-112-2/+12
| | | | | | * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Actually set the status so we don't cause another exceptionRoeland Jago Douma2017-11-292-0/+2
| | | | | | * And add tests so I don't mess up again Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not log Exception if a connection error occuredRoeland Jago Douma2017-11-292-0/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-0611-1/+20
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #5923 from nextcloud/expire-federation-jobsRoeland Jago Douma2017-08-0211-162/+204
|\ | | | | Expire federation jobs
| * Close all the cursorsJoas Schilling2017-08-021-12/+26
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use automatic injection whenever possibleJoas Schilling2017-08-026-80/+38
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use ITimeFactoryRoeland Jago Douma2017-08-015-32/+50
| | | | | | | | | | | | | | * Inject the timefacotry so we can mock it properly in the tests. * Extended unit tests to cover the new paths Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * we don't need to remove the job manually here, even if we ask once more the ↵Bjoern Schiessle2017-08-011-9/+0
| | | | | | | | | | | | other server will decline and the background job will be removed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * cleanup constructorsBjoern Schiessle2017-08-012-53/+33
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * expire requestSharedSecret job after 30 daysBjoern Schiessle2017-08-012-3/+45
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * expire getShareadSecret job after 30 daysBjoern Schiessle2017-08-012-2/+42
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Remove explicit type hints for ControllerLukas Reschke2017-08-011-1/+1
| | | | | | | | | | | | This is public API and breaks the middlewares of existing apps. Since this also requires maintaining two different code paths for 12 and 13 I'm at the moment voting for reverting this change. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #5877 from nextcloud/typehint_middlewareMorris Jobke2017-08-011-2/+4
|\ \ | |/ |/| Prop argument type for Middleware
| * Fix testsRoeland Jago Douma2017-07-311-2/+4
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add |null to PHPDocLukas Reschke2017-08-012-2/+2
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Remove unused use statementsMorris Jobke2017-04-222-5/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* No need to log guzzle exceptionRoeland Jago Douma2017-04-212-2/+2
| | | | | | | | | | When getting/requesting a shared secret there is no need to log the full exception when an unexpected status code is returned since this won't really tell us anything as the bad stuff happened on a remote server Fixes #3380 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-125-13/+85
|\ | | | | Discover federatedsharing endpoints
| * Do proper DIRoeland Jago Douma2017-04-113-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * give old end-points a seperate nameBjoern Schiessle2017-04-111-0/+31
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * fix constructorBjoern Schiessle2017-04-112-2/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * get addressbook url and carddav user from remote serverBjoern Schiessle2017-04-112-7/+18
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * use discovered end-point for trusted serversBjoern Schiessle2017-04-112-6/+36
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Update comments to NextcloudMorris Jobke2017-04-115-6/+6
|/ | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* only execute code if exception was thrown by the corresponding controllerBjoern Schiessle2017-03-241-0/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* No challenge within federated authThomas Müller2016-12-191-0/+8
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* don't add server automatically to trusted serverBjoern Schiessle2016-11-171-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove dead OCS register codeRoeland Jago Douma2016-09-021-34/+0
|
* Use function parametersRoeland Jago Douma2016-08-281-10/+6
|
* Move OCSAuthAPI to AppFrameworkRoeland Jago Douma2016-08-281-17/+27
| | | | | | * Convert class * Convert routes * Convert tests
* adjust federation appArthur Schiwon2016-08-112-7/+69
|
* improve federation error messagesBjoern Schiessle2016-08-093-13/+19
|
* Update with robinJoas Schilling2016-07-215-5/+5
|