Commit Graph
652 Commits
Author SHA1 Message Date
Benedikt Kulmann a8a6647a12 chore: bump web to v7.0.0-rc.13 2023-02-14 15:13:45 +01:00
Ralf HaferkampandGitHub b7ec7c92c4 graph: Initial support for $filter in /users (#5533)
This adds some initial support for using $filter (as defined in the
odata spec) on the /users endpoint. Currently the following filters are
supported:

A single filter on `id` property of the `memberOf` relation of users.
To list all users that are members of a specific group:

```
curl 'https://localhost:9200/graph/v1.0/users?$filter=memberOf/any(m:m/id eq '262982c1-2362-4afa-bfdf-8cbfef64a06e')
```

A logical AND filteri on the `id` property of the `memberOf` relation of users.

`$filter=memberOf/any(m:m/id eq 262982c1-2362-4afa-bfdf-8cbfef64a06e) and memberOf/any(m:m/id eq 6040aa17-9c64-4fef-9bd0-77234d71bad0)`

This will cause at least two queries on the identity backend. The `and`
operation is performed locally.

Closes: #5487
2023-02-14 10:32:32 +01:00
Michael BarzandGitHub 2b04573628 Merge pull request #5559 from owncloud/branding-api
Branding api
2023-02-13 22:30:09 +01:00
e0753c20fb Update services/web/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
2023-02-13 16:21:59 +01:00
Jörn Friedrich Dreyer 546e74c566 add webfinger to Makefile, add missing default config
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-13 13:36:18 +00:00
David Christofas 45d1ba25c0 add logo reset endpoint
when resetting the logo we are falling back to the embedded logo asset
2023-02-13 13:48:44 +01:00
David Christofas 7c17ddb0b0 add a permission check to the logo upload 2023-02-13 13:48:39 +01:00
David Christofas 13dfc06f63 add proxy route for the branding endpoint 2023-02-13 13:36:52 +01:00
David Christofas 6e83effb45 add simple filetype validator for the logo upload 2023-02-13 13:36:48 +01:00
David Christofas 3a685b6f50 clean up the logo upload 2023-02-13 13:36:43 +01:00
David Christofas 85f79dd765 first implementation of the logo update 2023-02-13 13:36:34 +01:00
David Christofas 20e4e56d28 implement first prototype of the logo upload API 2023-02-13 13:36:30 +01:00
Daniel SwärdandGitHub e853b98918 Merge pull request #5534 from owncloud/excds/feature/5411_support_adding_and_removing_of_teachers_for_classes
graph: Add support for listing/adding/removing teachers to a class
2023-02-13 11:48:58 +01:00
2c98d3246c minimal webfinger (#5373)
* initial webfinger stub

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add webfinger to proxy, return current host

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* some cleanup

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* allow passing multiple rel params

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* introduce interfaces

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* parse oidc auth token

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add templating, drop chain, use map of relation providers

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix ocis url yaml

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix typos

Co-authored-by: Dominik Schmidt <dschmidt@owncloud.com>

* switch to userinfo claims

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* readme cleanup

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add TODO.md with ideas

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* replace subject on authenticated request responses

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Apply suggestions from code review

Co-authored-by: Martin <github@diemattels.at>

* markdown lint

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* return a 401 when bearer token expired, some more docs

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Apply suggestions from code review

Co-authored-by: Martin <github@diemattels.at>

* fix docs

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* clarify env var

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* extract handler func

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use correct service in reflex.conf

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* test relations

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Update services/webfinger/pkg/config/config.go

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Dominik Schmidt <dschmidt@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
2023-02-13 11:05:20 +01:00
Daniel Swärd 2338515444 Make ldap functions package local and remove a superfluous comment. 2023-02-10 15:12:19 +01:00
Jörn Friedrich DreyerandGitHub fc95edb914 allow GETing a users personal drive (#5539)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-10 14:17:19 +01:00
Florian SchadeandGitHub 5da3df8ffe Space Trash-bin expiration cli (#5500)
* add storage-users trash-bin cli
add task to clean up outdated trash-bin resources
add trash-bin cli purge-expired command to purge expired trash-bin resources
add purge-expired task tests
2023-02-10 12:04:47 +01:00
Daniel Swärd 82e312ac2f Fix sonarcloud comment nitpick. 2023-02-10 11:50:46 +01:00
Daniel Swärd a21f485d2c Fix forgotten expected return values in tests. 2023-02-10 11:21:55 +01:00
Willy Kloucek cd20bc82bf improve the description of PROXY_USER_OIDC_CLAIM 2023-02-10 11:06:09 +01:00
Michael BarzandGitHub b3d71f002c Merge pull request #5542 from owncloud/bump-web-v7.0.0-rc.12
[full-ci] chore: bump web v7.0.0-rc.12
2023-02-10 09:23:19 +01:00
Benedikt Kulmann f519172036 chore: bump web v7.0.0-rc.12 2023-02-09 22:33:40 +01:00
mmattel bc6241a3dd Improve the description of the OCIS_ADMIN_USER_ID envvar 2023-02-09 12:50:01 +01:00
Daniel Swärd 4c1325f02a Remove duplication and make method generic. 2023-02-09 11:56:10 +01:00
Daniel Swärd 399e05b256 Remove code duplication for ldap entry membership. 2023-02-09 11:38:50 +01:00
David Christofas b6ea8a845c make linter happy 2023-02-08 17:05:06 +01:00
David Christofas c7c4cda7d7 add an expiration to the space member permissions 2023-02-08 17:05:00 +01:00
Daniel Swärd 8e1a65fc29 graph: Add support for listing/adding/removing teachers to a class 2023-02-08 16:55:10 +01:00
Ralf HaferkampandRalf Haferkamp 26f7523ff8 graph: Pass parsed odata request to the identity backend
In preparation for some more advanced queries pass the parse odata request
tVo the identity backend methods instead of the raw url.Values{}. This also
add some helpers for validating $expand and $search queries to reject
some unsupported queries.

Also remove support for `$select=memberOf` and `$select=drive|drives` queries
and stick to the technically correct `$expand=...`.
2023-02-08 14:25:55 +01:00
Ralf HaferkampandRalf Haferkamp 25d2a2bc71 graph: Remove some uneeded stuff for the education backend
We don't need to support any complex queries on /education (yet?). And if we would need
to add support for $search, $filter, $expand or $select we should pass the parsed odata Query
instead of the raw url.Values struct.
2023-02-08 14:25:55 +01:00
kobergjandGitHub b010569f53 Merge pull request #5480 from kobergj/FixPipeline
[full-ci][tests-only] Fix Nats Pipeline Error
2023-02-07 10:20:04 +01:00
mmattel 8dda0c6728 create readme.md for seach 2023-02-07 09:51:37 +01:00
Benedikt KulmannandGitHub 3525302160 Merge pull request #5463 from owncloud/kill-the-settings-ui
[full-ci] change: remove the settings ui
2023-02-06 14:30:10 +01:00
Benedikt Kulmann 8c033e1936 change: remove the settings ui
ownCloud Web recently transitioned to Vue3. The settings ui is still
written in Vue2. Since it's pretty much unused we won't take the efforts
of upgrading it to Vue3.
2023-02-03 10:27:05 +01:00
mmattel 210cd54817 fix some envvar descriptions 2023-02-03 09:40:35 +01:00
Benedikt Kulmann 2d9e86b4a4 chore: bump web to v7.0.0-rc.11 2023-02-02 21:42:37 +01:00
jkoberg 2f2e93e148 don't configure events for storage provider
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-02-02 16:14:01 +01:00
Ralf HaferkampandRalf Haferkamp ba761a0c3f graph: Make roleService optional again
Allow to use the /graph/users and /graph/education/users endpoints standalone
without the RoleService running. When there is no Roleservice do not expose
the `/appRoleAssignments` endpoint.
2023-02-02 16:04:03 +01:00
Ralf HaferkampandRalf Haferkamp 82021dca5a graph: Fix event handling for /groups
When running the graph service standalone with token auth we don't
have a user in the context. Avoid nil point exception when issueing
events in such a setup.
2023-02-02 16:04:03 +01:00
Daniël FrankeandRalf Haferkamp e1a4ac6b33 Fix tests 2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp 5ccb218267 Add memberOfSchoolAttribute to class attrr getter. 2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp 992ef9c5d7 Rename some variables, remove TODO. 2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp e5eb1e1a6d Add tests for ldap functions.
Also add interface functions to middleware.
2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp 610ad7ddd0 Add tests for service handlers. 2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp 14734f3d16 Fix comments for exported methods. 2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp 20f6a212f3 Add service endpoints. 2023-01-31 12:52:49 +01:00
Daniël FrankeandRalf Haferkamp 9b8adb65ed Add LDAP entries for adding classes to schools. 2023-01-31 12:52:49 +01:00
Michael BarzandGitHub 4806ed2880 Merge pull request #5470 from owncloud/update-web-7.0.0-rc.10
[full-ci] chore: bump web to v7.0.0-rc.10
2023-01-30 11:07:57 +01:00
ownClouders 4c5b0984c6 [tx] updated from transifex 2023-01-28 00:07:09 +00:00
Benedikt Kulmann da0d8581a0 chore: bump web to v7.0.0-rc.10 2023-01-27 22:51:11 +01:00