Commit Graph

119 Commits

Author SHA1 Message Date
Benedikt Kulmann b58ddeeb62 Add stubs for three missing service interface functions 2020-07-01 11:05:32 +02:00
Benedikt Kulmann b1ba52f02b Add asset generation from javascript bundle
On `make generate` the `pkg/assets/embed.go` will be generated from the
current state of the javascript app bundle in `assets/accounts.js`. So
you'll have to run `yarn build` first and then `make generate`.
2020-07-01 11:05:32 +02:00
Benedikt Kulmann a48334eaad Align root command with other ocis-extensions 2020-07-01 11:05:32 +02:00
Benedikt Kulmann 435104b5ff Add code generation for swagger and protoweb
Some of the Protobuf Messages were missing fields:
- RemoveMemberRequest was missing the `account_id` field for the account/member id
- ListMembersRequest was missing the `id` field for the group id

Some of the endpoint annotations were not correct regarding declared
bodies and the ids listed above.
2020-07-01 11:05:31 +02:00
David Christofas c01f4d1ed9 enable accounts on creation
Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-06-24 11:40:25 +02:00
David Christofas 630e2120e5 pass around the correct logger to the services
Also did some minor refactoring to make the code similar to the other
services.

Implements one task of owncloud/product#86

Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-06-23 17:29:28 +02:00
Jörn Friedrich Dreyer 474cf53e3f fix typo 2020-06-22 10:54:03 +02:00
Jörn Friedrich Dreyer ebee2c5443 create default accounts when dir does not exist
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-19 17:14:41 +02:00
Jörn Friedrich Dreyer 74a62bb3bf add mock implementation of the accounts service
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-18 18:26:09 +02:00
Jörn Friedrich Dreyer 0cdeeb7f03 allow handler to return an error
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-18 14:08:41 +02:00
Jörn Friedrich Dreyer a828b8242b handle terms as keywords, remove quotes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-17 17:02:48 +02:00
Jörn Friedrich Dreyer 0f938a8b10 drop redundant id for create requests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-17 15:15:18 +02:00
Jörn Friedrich Dreyer f3a1d26d2d fix staticcheck
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-17 15:04:03 +02:00
Jörn Friedrich Dreyer a27ca2fe5c implement create and delete api
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-16 18:57:50 +02:00
Jörn Friedrich Dreyer c2668daae8 persist accounts using json, index using bleve
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:04:35 +02:00
Jörn Friedrich Dreyer e78c4395de Use reasonable set of properties
ocis-graph will be responsible for building graph api resources like
user and groups as well as their relationships. ocis accounts deals
users and groups with all properties necessary to provision user
accounts.

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:04:23 +02:00
Jörn Friedrich Dreyer 368d744b7c add filed mask
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:03:25 +02:00
Jörn Friedrich Dreyer 5ae2ef9b80 add graph api properties
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:03:12 +02:00
Jörn Friedrich Dreyer 810d2b6b34 parse odata query and build ldap filter
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:02:55 +02:00
Jörn Friedrich Dreyer 2fd05e2b6f rewrite API, talk to ldap
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:02:44 +02:00
Jörn Friedrich Dreyer 16c5d13e10 Update accounts API
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:02:28 +02:00
Benedikt Kulmann b63a7cd241 Remove timezone setting from profile settings bundle 2020-06-12 16:47:39 +02:00
Benedikt Kulmann 868e95e2bf Remove notifications bundle and remove settings from profile bundle 2020-05-22 09:52:20 +02:00
Benedikt Kulmann 93325178f8 Move settings bundles into own file 2020-05-19 10:38:53 +02:00
Benedikt Kulmann 3714125213 Add more languages to language options 2020-05-15 13:52:32 +02:00
A.Unger ce9c74eb01 regenerate proto files 2020-05-11 10:01:19 +02:00
A.Unger a656e67d8c fix merge conflicts 2020-05-11 09:59:23 +02:00
Benedikt Kulmann bce6982920 Adapt creating settings bundles to most recent format 2020-05-07 18:10:47 +02:00
Jörn Friedrich Dreyer 422ceb9080 disable checking deprecated packages in generated code
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-05-06 19:07:23 +02:00
Jörn Friedrich Dreyer 3b6951cc80 add query properties, add pb deps, fix pb target
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-05-06 18:08:21 +02:00
A.Unger 3bee0594b0 Merge branch 'master' into feature/settings 2020-05-04 14:00:55 +02:00
Ilja Neumann b7fb179dec Make logging configurable 2020-04-29 14:10:33 +02:00
Benedikt Kulmann 548d0a691a Align with proto in settings service 2020-04-29 09:53:43 +02:00
Benedikt Kulmann d586fa93df Add a dummy multi choice element 2020-04-28 11:21:37 +02:00
Benedikt Kulmann 3a9673021f Add another settings bundle and more dummy settings 2020-04-23 15:36:47 +02:00
Alex Unger 720afed01e Merge branch 'master' into feature/settings 2020-04-23 09:25:15 +02:00
A.Unger 4507e17436 update branch 2020-04-22 19:30:50 +02:00
A.Unger 0dd2ceef78 add uuid (key) as part of the accounts payload 2020-04-22 19:29:13 +02:00
Benedikt Kulmann 8ce94c2f4a Use changed grpc service address 2020-04-22 15:51:24 +02:00
Ilja Neumann 2471de39f3 Extract server flags to flagset pkg 2020-04-22 15:49:40 +02:00
Benedikt Kulmann 3100ed1a29 Add option display names 2020-04-21 12:01:51 +02:00
A.Unger 86c52618ea POC: extensions promoting their own setting bundles onto the settings service 2020-04-17 13:42:13 +02:00
A.Unger 31f1f85fe9 Merge branch 'master' into feature/load-config-from-env-files 2020-04-16 09:32:27 +02:00
A.Unger 13cac8ae87 rename options.go -> option.go 2020-04-16 09:24:17 +02:00
A.Unger 4205b9ff1b rename grpc.go -> server.go 2020-04-16 09:23:57 +02:00
A.Unger 23ce3445c0 load env variables from .env file on root Before hook 2020-04-15 11:34:24 +02:00
A.Unger a957a50e68 update import path 2020-04-14 19:37:57 +02:00
A.Unger 48c2b7eed5 remove unused struct 2020-04-14 19:35:27 +02:00
A.Unger af5d0d3bab rename micro/ -> server/ 2020-04-14 19:32:54 +02:00
Benedikt Kulmann f44b9fa391 Fix version import 2020-04-09 06:48:59 +02:00