summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
Commit message (Collapse)AuthorAgeFilesLines
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unit tests for searching by phone numberJoas Schilling2020-12-071-7/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make the throwing optional, so background tasks don't breakJoas Schilling2020-12-071-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also translate the phone number when coming in via the accounts manager API ↵Joas Schilling2020-12-071-1/+5
| | | | | | directly Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add an endpoint to search for accounts based on phone numberJoas Schilling2020-12-071-0/+62
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make code strictJoas Schilling2020-12-072-30/+32
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #22891 from ↵Morris Jobke2020-10-051-2/+13
|\ | | | | | | | | nextcloud/techdebt/18680/improve-ProvisioningApiMiddleware-service-logic Improve registerService logic for ProvisioningApiMiddleware for static code analysis
| * Improve registerService logic for ProvisioningApiMiddleware for static code ↵Daniel Kesselberg2020-09-161-2/+13
| | | | | | | | | | | | | | analysis Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #23189 from nextcloud/enhancement/cs/binary_operator_spacesMorris Jobke2020-10-052-3/+3
|\ \ | | | | | | Format code to a single space around binary operators
| * | Format code to a single space around binary operatorsChristoph Wurst2020-10-052-3/+3
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Fix the user email issue while creating a userSujith Haridasan2020-10-051-12/+14
|/ | | | | | | | | When the user is created, the provisioning api was not adding the email address of the user when provided if the `send email to new user` is not set. Signed-off-by: Sujith Haridasan <sujith.h@gmail.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Generate password on addUser by password_policy appDaniel Kesselberg2020-08-091-4/+19
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use IBootstrap for the app federatedfilesharingMorris Jobke2020-07-142-13/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the new method everywhereJoas Schilling2020-07-033-40/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix languages empty arrayGretaD2020-05-081-1/+1
| | | | Signed-off-by: GretaD <gretadoci@gmail.com>
* Merge pull request #20677 from ↵Joas Schilling2020-04-301-2/+2
|\ | | | | | | | | nextcloud/followup/17718/scaling-user-provisioning Scaling user provisioning for subadmins with many groups
| * Patch to optimize for large installations (>5000 users >20000 groups) where ↵Mikael Hammarin2020-04-251-2/+2
| | | | | | | | | | | | | | | | | | | | subadmins have access to many of groups (>250) - UsersController:editUser() calls isUserAccessible() even if the user is admin This fix reduces API calls to editUser (ex change locale/display name) from >2 minutes (!) to ~3 seconds per call in average. Signed-off-by: Mikael Hammarin <mikael@try2.se>
* | Update license headers for 19Christoph Wurst2020-04-293-0/+4
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make the groupId url encodedJulius Härtl2020-04-111-0/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-29/+20
| | | | | | | | | | | | | | | 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-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-1/+2
| | | | 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>
* Revive the "send email to new users" toggle for the user formChristoph Wurst2020-02-281-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* query FederatedFileSharing Application instead of creating itRobin Appelman2019-12-161-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2019-12-059-18/+47
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix provisioning_api getUsers typesJohn Molakvoæ (skjnldsv)2019-11-281-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Some php-cs fixesRoeland Jago Douma2019-11-227-7/+10
| | | | | | | | | | | * 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>
* Do not create Application instances directlyChristoph Wurst2019-10-111-1/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow group displaynames in the database backend (#17221)John Molakvoæ2019-10-051-1/+23
|\ | | | | Allow group displaynames in the database backend
| * Allow to set the group display name in the database backendJoas Schilling2019-09-271-1/+23
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Move settings to an appChristoph Wurst2019-09-282-2/+2
|/ | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Only prevent disabling encrytion via the APIJoas Schilling2019-07-161-4/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make it possible to wipe all tokens/devices of a userChristoph Wurst2019-07-091-1/+38
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not fail hard on new user mail errorJohn Molakvoæ (skjnldsv)2019-07-021-2/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Don't allow to disable encryption via the APIJoas Schilling2019-06-271-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #16024 from ↵Roeland Jago Douma2019-06-251-1/+8
|\ | | | | | | | | nextcloud/bugfix/15944/fix-return-code-user-provision Forward OCSException to initiator
| * Forward OCSException to initiatorDaniel Kesselberg2019-06-201-1/+8
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | changes the returned key from UserID to id, in accordance with getUserDataArthur Schiwon2019-06-211-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | uses "yes" and "no" for config switch over stringified numbersArthur Schiwon2019-06-211-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | makes users management page aware of the introduced optionsArthur Schiwon2019-06-191-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | extends Provisioning API with optional userid and required emailArthur Schiwon2019-06-191-2/+24
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fixes misunderstanding of the error messageArthur Schiwon2019-05-161-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Check if password can be changed for the users backend in OCS apiJulius Härtl2019-03-051-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #13412 from nextcloud/forward-password-policyRoeland Jago Douma2019-01-301-1/+5
|\ | | | | forward error message from password policy
| * forward error message from password policyRobin Appelman2019-01-071-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>