Commit Graph
43 Commits
Author SHA1 Message Date
Dipak Acharya 8afdb15f25 [Tests-Only] Write HTTP API tests for user's endpoints 2020-09-04 11:31:36 +05:45
David Christofas 2d1dc2f308 fix ocs resonse format
Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-09-02 12:45:47 +02:00
Jörn Friedrich Dreyer e57dfc74f5 Mimic oc10 user enabled as string
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-08-26 17:21:59 +02:00
Vincent Petry 10686290e7 Use opaque ID of a user for signing keys
OCIS switched from user the user's opaque ID (UUID) everywhere,
so to keep compatible we have adjusted the signing keys endpoint
to also use the UUID when storing and generating the keys.
2020-08-11 16:13:22 +02:00
Dipak Acharya 1cb7d26ece Allow creating user without uidnumber and gidnumber 2020-08-10 14:51:14 +05:45
Dipak Acharya def5934702 Add UidNumber and GidNumber when creating new user 2020-08-10 14:03:08 +05:45
A.Unger 0db046d827 correctly parse request body 2020-08-05 13:47:41 +02:00
Vincent PetryandA.Unger 6d4766595c Use a single GRPC new client instance
The client is already using a connection pool, so we should not
instantiate it multiple times as it causes connections to stay open and
makes file descriptors leak.

Co-authored-by: "A.Unger" <zyxancf@gmail.com>
2020-08-04 15:54:22 +02:00
Jörn Friedrich Dreyer 0af224e0a1 fake quota as in reva
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-30 10:47:19 +02:00
Jörn Friedrich Dreyer a21ff4592b implement more group management endpoints
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-29 16:26:02 +02:00
Jörn Friedrich Dreyer 34c6b854a9 fix staticcheck
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-29 14:47:27 +02:00
Jörn Friedrich Dreyer 4c0adfd68d fake empty groups
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-29 14:42:10 +02:00
Jörn Friedrich Dreyer ee8195cd5f initial user and group listing
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-29 12:14:44 +02:00
Jörn Friedrich Dreyer cdde45290a implement delete, better return codes, correct result payload
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-29 11:19:29 +02:00
A.Unger 308d54c0e5 account enabled by default on AddUser 2020-07-28 16:35:50 +02:00
A.Unger 41c0cf2b3f CRU(D) on user provisioning 2020-07-28 16:27:39 +02:00
A.Unger 225b206686 user_id => userid, no underscore 2020-07-28 15:14:29 +02:00
A.Unger f8b22fc619 WIP user get working 2020-07-28 15:13:41 +02:00
Jörn Friedrich Dreyer b4aca3c5fd initial user provisioning
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-28 14:38:48 +02:00
Jörn Friedrich Dreyer 8787fbcea1 check response error code
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-22 15:35:07 +02:00
Jörn Friedrich Dreyer 1d76d2c7a9 remove spurious line
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-22 12:00:37 +02:00
Jörn Friedrich Dreyer 93d044d174 stick to username
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-22 11:42:00 +02:00
Jörn Friedrich Dreyer 40906fe57a read signing key from ocis-store
- adds an access token middleware to read the x-access-token header,
  extract the reva user from it and store it in the context
- implments the ocs/v[12].php/cloud/user/signing-key endpoint
  - reads or creates signing key in ocis-store

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-17 23:03:37 +02:00
Jörn Friedrich Dreyer 5078781500 signing key implementation
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-16 17:27:19 +02:00
Jörn Friedrich Dreyer 7aae61dca7 Initial OCS routes, version & format handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-14 14:15:53 +02:00
A.Unger f34309adec use ParseConfig on server command 2020-03-18 18:51:17 +01:00
A.Unger 382f356e23 abstract ParseConfig to its own scope 2020-03-18 18:50:44 +01:00
A.Unger dfd6bfa2cc add tracing 2020-03-10 15:15:22 +01:00
A.Unger 065c8a2475 set default log values 2020-03-10 14:22:03 +01:00
A.Unger 65c29c77b6 enable tracing middleware 2020-03-10 14:14:03 +01:00
David Christofas a9d7680112 upgrade micro libraries 2020-02-07 10:57:02 +01:00
David Christofas 15294bd48f updgrade the micro/cli dependency 2020-01-30 13:22:31 +01:00
A.Unger 050784273b use correct value 2019-12-24 11:59:46 +01:00
A.Unger 10845d532f use namespace option 2019-12-24 11:52:48 +01:00
A.Unger 003a124071 added namespace to http functional options 2019-12-24 11:51:38 +01:00
A.Unger cd8ca3b63d added http-namespace to the flagset 2019-12-24 11:47:52 +01:00
A.Unger 23ab0db581 added namespace flag to HTTP struct 2019-12-24 11:46:56 +01:00
A.Unger a70d8f6010 inject cmd flags 2019-12-12 11:01:55 +01:00
Thomas Boerger 4e4e873b80 Add custom http root
Now we are able to let this service run on a different root path.
2019-12-09 14:48:22 +01:00
Thomas Boerger acd6d6e7f5 Restructure project similar to hello and graph 2019-12-06 15:03:43 +01:00
Thomas Boerger dd5115dea0 Apply standard format, add dummy server 2019-09-16 10:11:09 +02:00
Thomas Boerger 7204bd7f44 Update files for new ocis naming 2019-09-05 12:06:11 +02:00
Thomas Boerger b00040ebbc Initial commit 2019-09-05 11:41:41 +02:00