Commit Graph

35 Commits

Author SHA1 Message Date
Benedikt Kulmann
15a3e6c378 Make linter happy 2020-08-12 15:41:01 +02:00
Benedikt Kulmann
f2345bc654 Don't convert account ids to lowercase 2020-08-12 15:28:13 +02:00
Benedikt Kulmann
17658df8b6 Allow + . and @ in account ids 2020-08-12 15:26:12 +02:00
Benedikt Kulmann
a183de1d36 Allow alphanumeric, - and _ for account uuids 2020-08-12 14:43:12 +02:00
Benedikt Kulmann
2de2d0b33e Remove debug output 2020-08-12 14:40:15 +02:00
Vincent Petry
fa1784ebb6 Remove one more validator for UUID 2020-08-12 14:33:04 +02:00
Vincent Petry
12c1b96f6f Allow any user id format
The user id / account UUID should allow any format as in some cases a regular user name
could be used there.
2020-08-12 14:21:31 +02:00
A.Unger
ea65b50000 unit test getFailsafeIdentifier 2020-07-22 10:22:21 +02:00
A.Unger
2c901cf162 refactor 2020-07-22 09:36:38 +02:00
A.Unger
3704bb5be3 add defensive code on type assertion 2020-07-22 09:24:42 +02:00
Benedikt Kulmann
86611f6e1c Make sure that account uuids are lower case 2020-06-03 15:30:35 +02:00
Benedikt Kulmann
6baabf2148 Remove Nil validation on ListSettingsValues request
That validation was just wrong. It enforced identifier values to be
empty.
2020-06-03 15:24:39 +02:00
Benedikt Kulmann
aae6356138 Fix formatting 2020-06-03 13:26:09 +02:00
Benedikt Kulmann
5a59a0ccd3 Remove redundant variable declarations 2020-06-03 13:18:43 +02:00
Benedikt Kulmann
3a9efee815 Make linters happy 2020-06-03 13:15:12 +02:00
Benedikt Kulmann
b002720b03 Add validation for DisplayName and Settings being required in SettingsBundles 2020-06-03 12:43:32 +02:00
Benedikt Kulmann
ac98d4b85b Adapt validation for list requests on bundles and values
There are certain scenarios where fields of the Identifier are allowed
to be empty. If they are not empty they still have to match our
requirements for the contents of those fields (alphanumeric, -, _). This
is taken into acccount as well now.
2020-06-03 11:23:24 +02:00
Benedikt Kulmann
718ec8e061 Set up input validation for Identifiers on settings bundles
Implemented first input validation steps by making static validation on
identifiers in settings bundle requests.
2020-06-03 10:50:28 +02:00
Benedikt Kulmann
04837d5bcb Fix import formatting 2020-05-27 16:05:50 +02:00
Benedikt Kulmann
080384870a Use account uuid from request context in augmented identifier 2020-05-27 15:38:12 +02:00
A.Unger
9f27fe2981 ...make lint passing 2020-05-22 10:29:42 +02:00
A.Unger
c219866c7a fix golangci offenses 2020-05-22 10:24:01 +02:00
Benedikt Kulmann
88b0ecc643 Improve code doc 2020-05-22 09:19:06 +02:00
Benedikt Kulmann
56bbab28e7 Set up an axios interceptor to inject the auth token on all requests 2020-05-12 15:46:33 +02:00
Benedikt Kulmann
d6cd343b62 Implement single choice value load/save 2020-05-07 11:29:51 +02:00
Benedikt Kulmann
e44654dc9d Integrate loaded settings values into ui
Not yet done for single choice and multi choice, but getting there...
2020-05-07 07:42:50 +02:00
Benedikt Kulmann
8a6a06fcb8 Settings values protobuf and service 2020-04-29 09:51:22 +02:00
Benedikt Kulmann
2ea182243f Add settings value protobuf and store implementation 2020-04-28 19:47:04 +02:00
Benedikt Kulmann
5ac5a6c1db Parse bundles from files for list calls.
Side effect: get rid of code duplication for listing extensions.
2020-04-22 16:11:41 +02:00
A.Unger
96b97ec00d fix http middlewares 2020-04-22 12:31:12 +02:00
Benedikt Kulmann
55db2f72d0 Fixing http server 2020-04-22 11:27:42 +02:00
Benedikt Kulmann
d3412c965a Rename List to ListAll 2020-04-21 09:16:53 +02:00
A.Unger
99c372a8ef use jsonpb Marshaler/unmarshal 2020-04-16 12:49:51 +02:00
Benedikt Kulmann
5b89729d1e Basic service boilerplate for settings bundles 2020-04-16 10:07:45 +02:00
Benedikt Kulmann
a8af03c338 Initial boilerplate from boilr-ocis-extension. 2020-04-07 15:06:08 +02:00