Commit Graph

219 Commits

Author SHA1 Message Date
David Christofas
826a67b98d change hashing algorithm from SHA-512 to bcrypt
Even though SHA-512 is currently considered a secure algorithm it is not the best choice for password hashing. As this change introduces a breaking change it is beast to introduce it as early as possible to prevent us from having to implement a migration strategy

Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-09-16 14:10:01 +02:00
Benedikt Kulmann
49348704b7 Fix errors for test assertions to use go-micro errors 2020-09-16 09:59:54 +02:00
Benedikt Kulmann
cb9160368e Enable/fix test for creating duplicate accounts 2020-09-16 09:59:53 +02:00
Benedikt Kulmann
b2f076e467 Rename test helper function to reflect it's purpose properly 2020-09-16 09:59:53 +02:00
Benedikt Kulmann
0272dc269e Reject new account if id, mail or username already exists 2020-09-16 09:59:53 +02:00
Benedikt Kulmann
456217528b Bring back building the index on service start 2020-09-11 17:15:36 +02:00
Benedikt Kulmann
51969bfca3 Fix import order and remove debug log 2020-09-11 16:24:56 +02:00
Benedikt Kulmann
425ae7e74a Fix tests after refactoring 2020-09-11 14:30:17 +02:00
Benedikt Kulmann
600b428ee4 Refactor service handler init code into functions 2020-09-11 14:06:10 +02:00
Benedikt Kulmann
c661312f5d Move service handler init to the server command
We kept two instances of the service handler in parallel
2020-09-11 12:47:43 +02:00
Benedikt Kulmann
177d41211b Move role assignment to the end of account creation 2020-09-11 10:26:30 +02:00
Benedikt Kulmann
17bef7bde4 Fix tests 2020-09-10 19:04:11 +02:00
Benedikt Kulmann
bbefbb4237 Confirmation dialog for deleting accounts 2020-09-10 18:31:49 +02:00
Benedikt Kulmann
5e2130a1e6 Input validation on username and improved error handling 2020-09-10 17:38:28 +02:00
Benedikt Kulmann
93ecc5c2e8 Extract actions dropdown into standalone buttons and set icons 2020-09-10 17:05:01 +02:00
Benedikt Kulmann
4fe66b214c Rename enable/disable to activate/block 2020-09-10 16:43:12 +02:00
Benedikt Kulmann
bcb115ef1a Remove UID and GID from accounts list 2020-09-10 16:38:30 +02:00
Benedikt Kulmann
06880c1488 Reorganize code into components and align layout with phoenix 2020-09-10 16:28:21 +02:00
Lukas Hirt
149a92b3ef Regenerate assets 2020-09-09 16:30:00 +02:00
Lukas Hirt
d2234c4a68 Regenerated protobuf 2020-09-09 15:21:41 +02:00
Lukas Hirt
f3af912c6f Regenerate assets 2020-09-09 14:10:27 +02:00
Benedikt Kulmann
729fd3b5c8 Add preferred_name to request payload when creating account 2020-09-09 10:57:39 +02:00
Benedikt Kulmann
eedcdf5d8e Provide role service in service handler for grpc server 2020-09-08 15:39:16 +02:00
Lukas Hirt
4d37041ebc Regenerate assets 2020-09-07 17:53:55 +02:00
Lukas Hirt
b95b9800e8 Add acceptance tests 2020-09-07 17:17:23 +02:00
Benedikt Kulmann
804e9914f1 Add mock guest role 2020-09-04 11:59:34 +02:00
Benedikt Kulmann
7c315fe001 Sort imports 2020-09-04 11:57:57 +02:00
Benedikt Kulmann
232e84e131 Rename test file to reflect that it's only about permission checks 2020-09-04 11:52:50 +02:00
Benedikt Kulmann
b1a4b48167 Add test for permission checks on CreateAccount 2020-09-04 11:51:52 +02:00
Benedikt Kulmann
c4edd4828d Add test for permission checks on DeleteAccount 2020-09-04 11:50:08 +02:00
Benedikt Kulmann
dc2484d584 Add tests for UpdateAccount 2020-09-04 11:47:29 +02:00
Benedikt Kulmann
a0cbbaaf71 Add test for GetAccount permission checks 2020-09-04 11:43:28 +02:00
Benedikt Kulmann
d6db5c9f64 Test setup for accounts handler and ListAccounts permission checks 2020-09-04 11:36:27 +02:00
Benedikt Kulmann
9a4a08e35f remove debug code 2020-09-04 10:22:20 +02:00
Benedikt Kulmann
95bc5111e5 Switch over from roleCache+middleware to roleManager 2020-09-02 15:46:30 +02:00
Benedikt Kulmann
f689eff081 Add more doc comments 2020-08-31 08:53:20 +02:00
Benedikt Kulmann
512fe49c34 Fix function comment 2020-08-31 08:53:16 +02:00
Benedikt Kulmann
957e1987ab Update ocis-pkg/v2@master and ocis-settings@master 2020-08-31 08:52:05 +02:00
Benedikt Kulmann
65bf34b12c Setup roles cache and use it for permission checks 2020-08-31 08:50:30 +02:00
Benedikt Kulmann
cf89186286 Run permission registration on service start 2020-08-31 08:41:40 +02:00
Benedikt Kulmann
2fb28d0554 Register general purpose permission for account management 2020-08-31 08:41:40 +02:00
Benedikt Kulmann
ec1d6fbe70 Make use of the new READWRITE operation 2020-08-31 08:41:40 +02:00
Benedikt Kulmann
23bfd33b55 Fix tests 2020-08-28 16:38:11 +02:00
Benedikt Kulmann
97e4450102 Add role service to options 2020-08-28 16:26:15 +02:00
Benedikt Kulmann
a8c640add6 Add default user moss and assign default roles to builtin users 2020-08-28 15:52:49 +02:00
Benedikt Kulmann
6511321873 Fix accounts ui with new settings API 2020-08-27 10:33:04 +02:00
Ilja Neumann
73c8b11f3d Use dependency-injected grpc client 2020-08-26 20:19:14 +02:00
Ilja Neumann
f552072608 Assign user role to newly created accounts.
https://github.com/owncloud/product/issues/173
2020-08-26 20:19:14 +02:00
Benedikt Kulmann
8e011b7eb2 Add recompiled assets 2020-08-21 16:19:03 +02:00
Benedikt Kulmann
6b011fb91c Add account uuid to request body for fetching roles 2020-08-21 11:45:04 +02:00