summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix middleware implementations signaturesRoeland Jago Douma2017-07-311-5/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-242-7/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to force a language and set it via the ocs apiJoas Schilling2017-06-211-0/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't allow the user to set fields they can't seeJoas Schilling2017-06-021-7/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #4457 from nextcloud/fix-storage-info-with-wrong-casingMorris Jobke2017-04-241-32/+9
|\ | | | | Fix storage info with wrong casing
| * Remove dead argumentsJoas Schilling2017-04-241-24/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix similar issues with the group idJoas Schilling2017-04-241-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix the storage info and other checks when the user has wrong casingJoas Schilling2017-04-241-5/+5
| | | | | | | | 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-211-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-092-5/+6
| | | | | | | | | | | | | * 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-072-24/+26
|\ | | | | New layout for welcome email
| * Add support for themingLukas Reschke2017-04-072-24/+26
| | | | | | | | | | | | 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-071-10/+31
|/ | | | 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-281-1/+100
| | | | | | | | | | | | * 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>
* add groups to user info outputBjoern Schiessle2017-02-091-0/+6
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make sure that 'getCurrentUser' gets an array in order to manipulate the ↵Bjoern Schiessle2017-01-261-25/+37
| | | | | | 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-251-0/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add data from the users profile to the provisioning apiBjoern Schiessle2017-01-241-3/+15
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Allow subadmins to add people to groups via provisioning apiJoas Schilling2017-01-181-0/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure subadmins can not delete users from their last subadmin groupJoas Schilling2017-01-181-0/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* No need to check the subadmin againJoas Schilling2017-01-181-16/+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>
* Require sudo mode on the provisioning APIJoas Schilling2016-12-053-7/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use new appstore APILukas Reschke2016-10-311-7/+2
| | | | | | This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add unit testsJoas Schilling2016-10-211-5/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make AppConfig part of the public APIJoas Schilling2016-10-211-0/+158
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to retrieve the quota itself via the provisioning apiJoas Schilling2016-08-171-0/+1
|
* Move Apps to OCSControllerRoeland Jago Douma2016-08-141-30/+42
|
* Move Users to OCSControllerRoeland Jago Douma2016-08-141-189/+190
|
* Move Groups over to OCSControllerRoeland Jago Douma2016-08-141-60/+68
| | | | | * Take advantage of the AppFramework * Fix tests
* Add ProvisioningAPI middlewareRoeland Jago Douma2016-08-143-0/+103
| | | | | | | | | | The provisioning API has 3 access levels: * Admin * SubAdmin * User This middleware adds a check for the SubAdmin part.
* Fix apps/Joas Schilling2016-07-213-9/+10
|
* Fix Warnings Provisioning APIRoeland Jago Douma2016-07-123-112/+109
| | | | | * OC_OCS_Result is deprecated * getMock is deprecated in phpunit 5.4
* Update license headersLukas Reschke2016-05-263-4/+4
|
* Move Provisioning api to PSR-4 (#24510)Joas Schilling2016-05-113-1/+1
| | | | | | | | * Move app to PSR-4 * Fix setUp method * Fix the tests
* Add provisioning api to enable and disable usersThomas Müller2016-05-021-12/+60
|
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Consolidate getQuota and setQuota methods in User instanceArthur Schiwon2016-02-091-1/+1
|
* Introduce IUser::setEMailAddress and add hook mechanismThomas Müller2016-01-201-1/+1
|
* Happy new year!Thomas Müller2016-01-123-3/+3
|
* Update log message when error occurs during addGroupTom Needham2016-01-081-1/+1
|
* Remove unnecessary group name validationTom Needham2016-01-081-1/+1
|
* Inject OCSClientLukas Reschke2016-01-061-3/+7
| | | | Fixes https://github.com/owncloud/core/issues/21451
* User IUser::getEMailAddress() all over the placeThomas Müller2015-12-021-1/+1
|
* Return empty list if group does not have subadminsRoeland Jago Douma2015-11-161-7/+1
| | | | | | | Instead of throwing an error just return an empty list. Since that is actually what it is. Fixes #19789
* Merge pull request #20292 from owncloud/provisioning_api_group_unittestThomas Müller2015-11-161-10/+25
|\ | | | | Moved grouptest over to pure unit tests
| * Moved grouptest over to pure unit testsRoeland Jago Douma2015-11-161-10/+25
| |