aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
...
* also allow admins to set the primary emailArthur Schiwon2021-09-091-0/+1
| | | | | | - there will be times when it is necessary to reset this value for sure Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use specific email getter where necessaryArthur Schiwon2021-09-092-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-092-27/+57
| | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Confirm mails only per POSTArthur Schiwon2021-09-091-2/+24
| | | | | | | - this is to avoid automatic confirmation by certain softwares that open links Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* implement verification for additional mailsArthur Schiwon2021-09-092-4/+131
| | | | | | | | | | | | - mails added by (sub)admins are automatically verified - provisioning_api controller as verification endpoint - IAccountProperty gets a locallyVerified property - IPropertyCollection gets a method to fetch an IAccountProperty by value - an remove equivalent was already present - AccountManager always initiates mail verification on update if necessary - add core success template for arbitrary title and message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refs #21045 add app config to disable unlimited quota and to set max quotaJulien Veyssier2021-07-292-0/+18
| | | | | | | | | avoid unlimited quota as default_quota fallback value if unlimited quota is not allowed avoid getting/setting/displaying unlimited default quota if not allowed implement tests for unlimited quota restrictions Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Migrate HintException to OCPGary Kim2021-06-301-3/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* cleanupArthur Schiwon2021-06-301-6/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix small issues in UsersController handlingArthur Schiwon2021-06-302-3/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust access permissions of new controller methodArthur Schiwon2021-06-301-1/+5
| | | | | | - fixes wrong veriable usage also Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* create a property on editUser when it was not set beforeArthur Schiwon2021-06-301-10/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api to be able to edit multivalue propertiesArthur Schiwon2021-06-301-0/+98
| | | | | | | - adding as usual - deleting and scope setting via additional endpoint Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports multiple mail as editable fieldArthur Schiwon2021-06-301-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* prov api reports additional emails on getUserArthur Schiwon2021-06-301-0/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Group may be null if backend doesn't support creating groupsDries Mys2021-06-051-0/+3
| | | | Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
* Fixed indentationDries Mys2021-06-051-1/+1
| | | | Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
* [ProvisioningAPI] Allow specifying group display name during creationDries Mys2021-06-051-2/+6
| | | | Signed-off-by: Dries Mys <dries.mys@my-dreams.be>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-12/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix the get editable fields endpoint without a user idJoas Schilling2021-05-271-1/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26679 from ↵blizzz2021-05-132-14/+22
|\ | | | | | | | | nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning Fix unauthorized OCS status in provisioning
| * Fix unauthorized OCS status in provisioningJoas Schilling2021-05-122-14/+22
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | 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>
* 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-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a service to find out if a user knows another userJoas Schilling2021-03-101-23/+14
| | | | 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>
* 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-033-18/+19
| | | | | | | | | | | | | | | | 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-161-0/+1
| | | | 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 #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-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>