Michael Barz
85fd0158dd
add GetSingleDrive handler
2022-01-19 12:15:39 +01:00
Jörn Friedrich Dreyer
0dfb86e80e
address feedback
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-19 08:57:06 +00:00
Jörn Friedrich Dreyer
6e6c2a127b
inline variable
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-19 08:40:56 +00:00
Jörn Friedrich Dreyer
e9ccf09c20
test reading from space.yaml
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-18 15:29:09 +00:00
Jörn Friedrich Dreyer
9b4fae1704
add mockery for minimal graph testing
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-18 12:42:49 +00:00
Jörn Friedrich Dreyer
94d6daa222
check error when setting cache with ttl
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-17 15:39:15 +00:00
Jörn Friedrich Dreyer
75bfd71355
Merge branch 'master' into graph-reads-space-yaml
2022-01-17 15:35:47 +00:00
Jörn Friedrich Dreyer
4a48708bf0
Merge pull request #2947 from rhafer/ldap-as-user-backend
...
Add support for user creation and deletion to GraphAPI (LDAP backend)
2022-01-17 15:54:10 +01:00
Michael Barz
1db13d8a39
add tests
2022-01-16 11:57:57 +01:00
Michael Barz
f7bf42bce0
fix case for unsupported operators
2022-01-16 11:57:57 +01:00
Michael Barz
bca954cae7
more detailed logging
2022-01-16 11:57:43 +01:00
Michael Barz
624a2a956c
add filter by id and driveType
2022-01-16 11:57:03 +01:00
Jörn Friedrich Dreyer
942bd0b98d
add initial ok & not found caching, config, logs
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-14 15:50:57 +00:00
Jörn Friedrich Dreyer
5b97a12acd
refactor headers into a dedicated package
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-14 14:14:35 +00:00
Jörn Friedrich Dreyer
6b935e47d0
return WebDavURL to special resources
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-14 13:54:00 +00:00
Jörn Friedrich Dreyer
5865607241
Read additional graph drive prop from space.yaml
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-13 16:18:09 +00:00
Ralf Haferkamp
53efa9ca14
Switch to generating our own UUIDs for users
...
By default the GraphAPI will generate the UUID itself now instead of
relying on the LDAP server to generate a valid entryUUID attribute. This
can been be switched off via the new `use_server_uuid` toggle in the
LDAP config.
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
840c9a7ddd
Implement UpdateUser support for the GraphAPI backend
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
775a556c23
graph: Add missing methods to Service Interface
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
4915195d9c
Implement DeleteUser support for the Graph LDAP backend
2022-01-13 16:30:09 +01:00
Alex Unger
5d6e361cff
Implement CreateUser support for the Graph LDAP backend
...
This adds basic support for creating users via the GraphAPI
LDAP backend. This currently just maintains the bare minimum
Attributes for the inetOrgPerson objectclass.
Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com >
2022-01-13 16:30:09 +01:00
Jörn Friedrich Dreyer
c0301fb46e
fix listing spaces without owners
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-12-15 20:27:48 +00:00
Jörn Friedrich Dreyer
42f5ca07c9
fix graph
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-12-15 19:31:01 +00:00
Jörn Friedrich Dreyer
da61a20cf1
Merge branch 'master' into spaces-registry
2021-12-15 16:33:52 +00:00
Michael Barz
04145b295a
Merge pull request #2869 from owncloud/graph-api-rest
...
Graph api rest
2021-12-13 19:59:01 +01:00
Michael Barz
23458ba4b9
remove unecessary replace
2021-12-13 16:33:47 +01:00
Michael Barz
6e73ee7466
handle non existent spaces gracefully
2021-12-12 17:26:57 +01:00
Michael Barz
efd7f76f78
change update drives
2021-12-12 17:26:57 +01:00
Michael Barz
e628750dc2
graph update
2021-12-11 21:59:36 +01:00
Jörn Friedrich Dreyer
7041549a16
fix listing drives
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-12-09 14:59:25 +00:00
Willy Kloucek
9109f8843a
always unescape url params
2021-12-06 17:04:12 +01:00
Ralf Haferkamp
d21ca0658f
graph: Add unit test for LDAP identity backend
...
This reworks the LDAP backend a bit to allow for mocking the ldap.Client
interface. It also add a couple of unit test for the backend
2021-11-25 14:51:52 +01:00
Ralf Haferkamp
026da000dc
LDAP group backend for GraphAPI
...
This is an initial implementation of the /groups graph endpoint.
Currently it is only showing the ID and Name attributes of the groups.
Listing members is not yet supported.
As the userbackend this is still read-only and doesn't support any
advanced filtering.
2021-11-25 14:51:52 +01:00
Ralf Haferkamp
f253f7bc8e
graph: Groups convert CS3 code to its own backend
...
Until the LDAP backend is ready the existing CS3 code should keep
working.
This also adds the initial stubs for the upcoming LDAP Backend.
2021-11-25 14:51:52 +01:00
Ralf Haferkamp
76390f3d4f
Rename userBackend to identityBackend
...
This is suppoosed to handle Groups and Users so adjust the Name
2021-11-25 14:51:52 +01:00
Ralf Haferkamp
fbdcdf255c
LDAP user backend for GraphAPI
...
This is still read-only and doesn't support any of the advanced
querying options of the graph API.
2021-11-25 14:51:52 +01:00
Ralf Haferkamp
61d65daa89
Make identity backend configurable for GraphAPI
...
In order to gradually switch to a new LDAP backend move
the existing code talking to CS3 into its own backend.
2021-11-25 14:30:22 +01:00
Willy Kloucek
32ffbe3ac6
adapt changed function signatures
2021-11-19 13:22:47 +01:00
Willy Kloucek
e35d4fd0ac
remove GRPC insecure config options, since it always needs to be set to insecure
2021-11-10 16:12:29 +01:00
Willy Kloucek
69cc11dbe6
make more insecure options configurable and change insecure defaults from true to false
2021-11-10 15:45:55 +01:00
David Christofas
2986265be7
enable users to list all spaces
2021-10-27 17:17:16 +02:00
David Christofas
c23071fb91
enforce set space quota permission
2021-10-22 15:53:52 +02:00
Willy Kloucek
29341a7f94
split spaces webdav url and graph url configuration in base and path parts
2021-10-21 14:30:18 +02:00
Michael Barz
fabed476f7
calculate quota stage
2021-10-15 12:28:19 +02:00
Michael Barz
654c237094
add missing error handling
2021-10-14 17:23:40 +02:00
A.Unger
abbd64bff6
fix update branch
2021-10-14 16:06:49 +02:00
Alex Unger
c4f450bab7
Merge branch 'master' into report-quota
2021-10-14 15:55:03 +02:00
jkoberg
00c663f3b6
simplify quota creation logic
2021-10-14 13:50:06 +02:00
jkoberg
2a6e5454d2
send nil quota if not set
2021-10-13 14:13:26 +02:00
jkoberg
d5d33c7941
add default space quota
2021-10-13 13:47:57 +02:00