summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
Commit message (Collapse)AuthorAgeFilesLines
* Make the DELETION of groups match greedy on the groupIDRoeland Jago Douma2018-06-121-1/+1
| | | | | | | | fixes #6032 Now since the match is greedy it will also eat the / Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show hint in OCS API for user creationMorris Jobke2018-02-231-2/+10
| | | | | | | | * adds a 107 error code together with the hint of the exception * logs the exception as warning * fixes #7946 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Composer updatedRoeland Jago Douma2018-01-042-16/+12
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use proper authorative-autoloader for app autoloadersRoeland Jago Douma2017-12-142-11/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change @georgehrke's emailMorris Jobke2017-11-062-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0610-6/+76
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6875 from nextcloud/app_autoloadersJoas Schilling2017-11-019-0/+615
|\ | | | | Move server apps to dedicated autoloader
| * Provisioning_API AutoloaderRoeland Jago Douma2017-10-249-0/+615
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use ::class in test mocks of encryption appMorris Jobke2017-10-261-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-243-78/+79
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* throw 101 when an empty group string is providedArthur Schiwon2017-09-182-1/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove explicit type hints for ControllerLukas Reschke2017-08-011-2/+2
| | | | | | 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-5/+6
|\ | | | | Prop argument type for Middleware
| * Fix middleware implementations signaturesRoeland Jago Douma2017-07-311-5/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix testsRoeland Jago Douma2017-08-011-0/+1
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-244-9/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add unit tests for the new codeJoas Schilling2017-06-211-0/+180
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to force a language and set it via the ocs apiJoas Schilling2017-06-212-8/+39
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't allow the user to set fields they can't seeJoas Schilling2017-06-022-9/+33
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump app versions as wellJoas Schilling2017-05-221-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust version requirementJoas Schilling2017-05-221-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #4457 from nextcloud/fix-storage-info-with-wrong-casingMorris Jobke2017-04-242-84/+92
|\ | | | | Fix storage info with wrong casing
| * Remove dead argumentsJoas Schilling2017-04-242-45/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix similar issues with the group idJoas Schilling2017-04-242-4/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix the storage info and other checks when the user has wrong casingJoas Schilling2017-04-242-35/+83
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove unused use statementsMorris Jobke2017-04-221-1/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use RESPOND_NOT_FOUND for non existing userMorris Jobke2017-04-212-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update comments to NextcloudMorris Jobke2017-04-111-3/+3
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust class referencesLukas Reschke2017-04-111-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-093-8/+9
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4244 from nextcloud/welcome-emailMorris Jobke2017-04-073-207/+81
|\ | | | | New layout for welcome email
| * Add support for themingLukas Reschke2017-04-073-207/+81
| | | | | | | | | | | | Add support for theming in generated emails and simplify API Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Allow to change account info via provisioning apiJoas Schilling2017-04-072-16/+37
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make deleting a group compatible with ocs v2Joas Schilling2017-03-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix provisioning API callJoas Schilling2017-03-201-1/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* OCS API endpoint to resend welcome messageMorris Jobke2017-02-283-1/+619
| | | | | | | | | | | | * send a POST request to ocs/v1.php/cloud/users/USERNAME/resendWelcomeMessage to trigger the welcome message to be send * fixes #3367 example curl statement: curl -i https://example.org/ocs/v1.php/cloud/users/USERNAME/welcome -H "OCS-APIRequest: true" -u admin:password -X POST Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Refactor provision api app's UserControllerTestChristoph Wurst2017-02-281-76/+67
| | | | | | | | * Replace deprecated getMock with createMock * Use createMock consistently * Use php's ::class references Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add groups to user info outputBjoern Schiessle2017-02-092-3/+36
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make sure that 'getCurrentUser' gets an array in order to manipulate the ↵Bjoern Schiessle2017-01-262-36/+83
| | | | | | data to match the old API Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* unify endpoints form core and the the provisioning apiBjoern Schiessle2017-01-253-2/+112
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add data from the users profile to the provisioning apiBjoern Schiessle2017-01-242-4/+65
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Allow subadmins to add people to groups via provisioning apiJoas Schilling2017-01-182-7/+151
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure subadmins can not delete users from their last subadmin groupJoas Schilling2017-01-182-0/+76
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* No need to check the subadmin againJoas Schilling2017-01-182-21/+11
| | | | | | | The user needs to be a subadmin of the group, otherwise they are not allowed to remove anyone from the group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adds provisioning middleware testsRoeland Jago Douma2016-12-301-0/+122
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update app versions and requirementsJoas Schilling2016-12-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Require sudo mode on the provisioning APIJoas Schilling2016-12-053-7/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use 11.0 instead 9.2Lukas Reschke2016-11-151-1/+1
| | | | | | As discussed we're changing the version from 9.2 to 11.0 to make some more sense. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use new appstore APILukas Reschke2016-10-312-24/+5
| | | | | | This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add unit testsJoas Schilling2016-10-212-5/+386
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>