aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | allow to set valid scopes only in AccountPropertyArthur Schiwon2021-05-121-1/+1
| | | | | | | | | | | | the auto-fallback to v2-local is removed as well to react on wrong input Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | provAPI to use only public API of IAccountManagerArthur Schiwon2021-05-083-37/+44
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Also check implementsAction methodJoas Schilling2021-04-271-3/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only return display name as editable when the user backend allows itJoas Schilling2021-04-271-6/+36
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also check the default phone region when the number has no country codeJoas Schilling2021-03-311-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Capability for federated scopeVincent Petry2021-03-261-0/+11
| | | | | | | | | Added additional capability in the provisioning API to signal whether the federation scope values can be used. This is based on whether the lookup server upload is enabled or not. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Change account property capability Vincent Petry2021-03-261-1/+1
| | | | | | | Include version number in capability Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
* Add capability for editable scopes in provisioning APIVincent Petry2021-03-262-0/+53
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Expose avatarScope through provisioning APIVincent Petry2021-03-262-0/+9
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* OCS allow reading and writing account property scopesVincent Petry2021-03-262-8/+55
| | | | | | | Extends the provisioning API to allow a user to get and set their own account property scopes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Make extra user profile fields always editableVincent Petry2021-03-261-23/+8
| | | | | | | | The fields for phone number, address, website and twitter are now editable regardless whether federated sharing and the lookup server are enabled or not. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Only clear known users when we had at least one phonebook entryJoas Schilling2021-03-121-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename some parameters and methods to make the API more clearJoas Schilling2021-03-102-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a service to find out if a user knows another userJoas Schilling2021-03-102-30/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete matches when the user is being deletedJoas Schilling2021-03-102-0/+58
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete matches when a user changes their phone numberJoas Schilling2021-03-101-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Store when a user knows another user based on phone numberJoas Schilling2021-03-101-0/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix some psalm warningsJoas Schilling2021-03-101-17/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provisioning API to IBootstrapRoeland Jago Douma2021-03-101-6/+13
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fixed error after merge in UsersControllerRoeland Jago Douma2021-03-051-5/+6
| | | | | | | This was moved to the LoggerInterface so the recent merge of #25589 broke master. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #25589 from nextcloud/provisioning-api-invalid-argumentRoeland Jago Douma2021-03-051-0/+7
|\ | | | | forward invalid argument message to frontend when creating a user fails
| * forward invalid argument message to frontend when creating a user failsRobin Appelman2021-02-111-0/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove deprecated \OCP\APIRoeland Jago Douma2021-03-034-19/+21
| | | | | | | | | | | | | | | | Time to remove this forgood now. Remaining constant moved over The world is a tiny bit better Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | LoggerInterface for provisioning API ControllersRoeland Jago Douma2021-03-022-31/+36
| | | | | | | | | | | | | | Sweep swoop swaap swuup away with the deprecated stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Cleanup appinfo usageJoas Schilling2021-02-162-13/+10
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>