Commit Graph

3198 Commits

Author SHA1 Message Date
Bruno Bernardino b69792ab48
Fix typo 2022-05-11 17:27:51 +01:00
Bruno Bernardino 28cdf116d0
Finish testing with Users and Groups for Azure AD.
This fixes + improves GET, basically, to support all that's necessary for AD to properly fetch, compare, and update users and groups.
2022-05-11 16:06:15 +01:00
Martin Kleinschrodt 71f79c4052
Merge pull request #447 from padloc/fix/issue-427
Fix menu not being updated when changing vault name
2022-05-10 17:00:42 +02:00
Martin Kleinschrodt ca6a77161b Increase timeout in e2e v3 compatibility tests to prevent intermittent fails 2022-05-10 17:00:21 +02:00
Bruno Bernardino 5ab73f979c
Add logic to support Azure AD.
Add GET for Azure AD's test connection
Add Authorization Bearer secret token support
Add support for the single SCIM tenant/root endpoint

User provisioning working in Azure AD!
2022-05-10 15:54:36 +01:00
Martin Kleinschrodt 5bbd7a33e6 Update vault revision when changing name or other meta data to make sure clients pull the updated version
Fixes #427
2022-05-10 16:29:42 +02:00
Martin Kleinschrodt 56ae71ef84
Merge pull request #445 from padloc/feature/configure-security-check
Allow disabling security checks
2022-05-10 16:03:24 +02:00
Martin Kleinschrodt 7a342c230c Rename components 2022-05-10 15:39:14 +02:00
Martin Kleinschrodt 5fcd13f1fb Fix performance problem caused by trying to calculate strength of very long passwords 2022-05-10 14:48:43 +02:00
Martin Kleinschrodt dd42011f52 Properly integrate security check feature into provisioning system, allowing to hide/disable it. 2022-05-10 14:47:49 +02:00
Bruno Bernardino d5be77d9b2
Reworked + Fixed Users and Groups CRUD, and it's fully functional
Includes fully server-generated SCIM URLs, having the orgId in the path instead of search params, and properly adding/removing members.
2022-05-09 16:31:04 +01:00
Martin Kleinschrodt 00b33e801e
Use different strategy for dealing with scim resources: (#446)
* Use different strategy for dealing with scim resources:

- Store "virtual" scim-based representation of org in provisioning profile
- Assign random ids to all scim resources
- use "virtual" scim model to resolve ids and track changes

* Set propery meta data in scim resources; add missing calls to _saveScimOrg

* Fix incorrect parsing of group ids
2022-05-09 12:47:34 +01:00
Martin Kleinschrodt 4308e675ec Make SCIM section in settings look pretty 2022-05-07 10:47:45 +02:00
Bruno Bernardino 7ff597a19e
Implement Group PATCHing (including adding and removing members).
Right now removing a member isn't persisting, though the group is correctly changed.
2022-05-06 17:17:16 +01:00
Martin Kleinschrodt f04dc2b1d0 Add missing properties in AccountProvisioning and OrgProvisioning classes (forgot to commit earlier) 2022-05-06 18:09:50 +02:00
Martin Kleinschrodt ffaf6a421e Allow disabling security checks 2022-05-06 18:01:33 +02:00
Martin Kleinschrodt 41dc03eeb7
Merge pull request #443 from padloc/feature/update-logo
Update logo and icon
2022-05-06 16:29:19 +02:00
Martin Kleinschrodt adf23400a4 Update logo and icon 2022-05-06 15:19:48 +02:00
Bruno Bernardino 5102be1785
Implement proper Group Create and Delete 2022-05-05 16:24:36 +01:00
Bruno Bernardino fbd496cc97
Finish CRUD for user matching the proper spec (with operations), and "stable" id. 2022-05-04 16:25:33 +01:00
Bruno Bernardino ec9f7e6dd6
Update endpoints to support proper emails property and <id> in URL
User Create and Delete + Group Create are now working, and returning proper data.
2022-05-03 17:46:31 +01:00
Bruno Bernardino 8786f86c4d
Remove externalId need, implement group POST, add comments based on spec/research findings 2022-05-02 16:48:09 +01:00
Bruno Bernardino 66d0b3dbd5
Remove unnecessary `getAuth` method. 2022-04-27 14:48:28 +01:00
Bruno Bernardino 4d77a52a4f
Properly remove auth invites when deleting a user + save SCIM URL
The SCIM URL piece is still WIP, because I'll need to get the proper host, or create a new config variable for it.
2022-04-26 15:50:29 +01:00
Bruno Bernardino 97dbe3b394
Fix duplicate user adding, patch, post, and add delete.
This "finishes" the SCIM CRUD for Users.
2022-04-25 15:44:14 +01:00
Martin Kleinschrodt b93f5eb750 Fix members without an account id being filtered out when updating organisation data
make sure the org member status is set when passing it via constructor
2022-04-20 08:12:41 +02:00
Bruno Bernardino 42dd4747ee
Change storage to server for directory sync, test further, still not working. 2022-04-19 15:06:20 +01:00
Bruno Bernardino 49e6228670
Actually create the org member (it's not persisting it yet, though) 2022-04-18 16:13:03 +01:00
Martin Kleinschrodt 63b0b1280c Add missing @AsSerializable decorator 2022-04-18 16:09:55 +02:00
Bruno Bernardino d74039b2ba
Properly save directory settings (SCIM doesn't save) and start implementing user update. 2022-04-18 15:00:16 +01:00
Bruno Bernardino aefd78153e
Add org settings for enabling/disabling directory sync, fix initializiation 2022-04-18 12:15:57 +01:00
Martin Kleinschrodt ac16e83821 Fix bug in migrations logic 2022-04-17 16:56:35 +02:00
Martin Kleinschrodt 531725e428 Bring Stripe provisioner in line with model changes 2022-04-17 11:37:34 +02:00
Martin Kleinschrodt 2dac558732 Add missing await 2022-04-17 10:49:37 +02:00
Martin Kleinschrodt ea73ac320e Add directory config 2022-04-17 10:26:02 +02:00
Martin Kleinschrodt 71cb56914a Add comments to new migration 2022-04-17 10:09:39 +02:00
Martin Kleinschrodt b389c6c7a2 Separate concerns into directory sync (adding/removing members and groups to organisations) and directory provisioning (provisioning/whitelisting users), both serviced by directory providers (e.g. scim). 2022-04-17 09:25:05 +02:00
Martin Kleinschrodt 2bd9b21aec WIP 2022-04-16 13:00:50 +02:00
Martin Kleinschrodt ba2ea82f80 Refactor org model to allow pre-provisioning members 2022-04-16 10:30:46 +02:00
Bruno Bernardino a9b2dbebc5
Migrated SCIM to an extension of BasicProvisioner 2022-04-14 15:07:37 +01:00
Bruno Bernardino f28cbafb70
Add member provisioning 2022-04-14 13:10:18 +01:00
Bruno Bernardino 32ff418ba9
Move to its own class 2022-04-14 12:45:45 +01:00
Martin Kleinschrodt 5da980f220 Extends provisioning model to accommodate for syncing 2022-04-14 13:42:37 +02:00
Bruno Bernardino 2b65ec986c
SCIM v1
Basic thoughts and structure. Having trouble figuring out the best place to put this and the places to call to get a user created.
2022-04-14 10:47:11 +01:00
Martin Kleinschrodt 347284f7cb
Merge pull request #428 from padloc/docs/docker-examples
Add examples for setting up self-hosted server and pwa via docker
2022-04-13 10:32:31 +02:00
Martin Kleinschrodt 6b76e10778 Change ref to v4, fix typos 2022-04-13 10:29:45 +02:00
Martin Kleinschrodt df5bc3b74d Remove duplicate text 2022-04-12 16:34:00 +02:00
Martin Kleinschrodt dfd00f81f4 Add reference to docker examples from server package readme 2022-04-12 16:26:52 +02:00
Martin Kleinschrodt 035fe77867 Commit example .env file 2022-04-12 15:12:09 +02:00
Martin Kleinschrodt 2a2bb6b1c1 Add examples of docker-based hosting setup 2022-04-12 15:05:22 +02:00