Author: Daniël Franke <df@ponc.tech>
Date: Thu Jan 12 17:25:43 2023 +0100
Consistently add user attributes to AddRequest (#5392)
To make the `CreateUser` flow easier to test, the attributes of the
LDAP add request need to be added consistently. This way we can
expect that argument with the mock.
This PR does the following:
* Add a method `getUserAttrTypes` that returns a static list of attr names.
* Alter `userToAddRequest` to iterate over the static list, and add the attr
if it exists in the `attrMap`.
Closes#5390
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date: Thu Jan 12 16:09:34 2023 +0100
graph: add appRoleAssignments and minimal application resource (#5318)
* bump libregraph-go lib
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* add appRoleAssignment stubs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* add get application stub
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fetch appRoles for application from settings service
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* initial list appRoleAssignments implementation
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* initial create appRoleAssignment implementation, extract assignmentToAppRoleAssignment, configurable app id and displayname
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* initial delete appRoleAssignment implementation, changed error handling and logging
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* initial expand appRoleAssignment on users
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* test user expand appRoleAssignment
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* test appRoleAssignment
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fix education test by actually using the mocked roleManager
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* test getapplication
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* list assignments
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* use common not exists error handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* default to just 'ownCloud Infinite Scale' as application name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fix store_test
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* roll application uuid on init
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fix tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* extract method
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* Apply suggestions from code review
Co-authored-by: Michael Barz <mbarz@owncloud.com>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Michael Barz <mbarz@owncloud.com>
Merge: 80559968785d213a0e
Author: Artur Neumann <artur@jankaritech.com>
Date: Thu Jan 12 17:10:34 2023 +0545
Merge pull request #5383 from owncloud/tests/version-with-same-mtime-port
[tests-only][full-ci] Added tests for checking version of file uploaded with same mtime twice
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date: Wed Jan 11 20:38:18 2023 +0100
graph:Add stubs for education/classes endpoints (#5360)
* Renamed files for consistency reasons
err_school.go implements the full education interface not just schools.
ldap_school.go renamed to ldap_education_school.go for making it
consistent with ldap_education_user.go
* graph: Add stubs for education/classes endpoints
The acutal backend implementations are still empty.
Author: Florian Schade <f.schade@icloud.com>
Date: Tue Jan 10 15:42:13 2023 +0100
[full-ci] add identitySet displayName property to the group and user sets (#5347)
* add identitySet displayName property to the group and user sets
Merge: 90cc29b0fe92262676
Author: Michael Barz <mbarz@owncloud.com>
Date: Wed Dec 28 11:58:44 2022 +0100
Merge pull request #5297 from owncloud/api-docs
add more api docs
Merge: cfa5d3aee0aa3eba8c
Author: Martin <github@diemattels.at>
Date: Tue Dec 27 11:28:40 2022 +0100
Merge pull request #5277 from owncloud/fix_postprocessing_descriptions
Fix the description of the postprocessing service
Merge: 524ee5c0b01d3723a5
Author: Martin <github@diemattels.at>
Date: Thu Dec 22 08:53:36 2022 +0100
Merge pull request #5273 from owncloud/docs-improvements
[docs-only] move api docs to root level
Merge: d359a7c2c11cf87ca2
Author: David Christofas <dchristofas@owncloud.com>
Date: Mon Dec 12 14:21:47 2022 +0100
Merge pull request #5217 from owncloud/dependabot/go_modules/github.com/go-micro/plugins/v4/registry/nats-1.2.1
Bump github.com/go-micro/plugins/v4/registry/nats from 1.1.0 to 1.2.1
Merge: d359a7c2c11cf87ca2
Author: David Christofas <dchristofas@owncloud.com>
Date: Mon Dec 12 14:21:47 2022 +0100
Merge pull request #5217 from owncloud/dependabot/go_modules/github.com/go-micro/plugins/v4/registry/nats-1.2.1
Bump github.com/go-micro/plugins/v4/registry/nats from 1.1.0 to 1.2.1
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date: Mon Dec 12 12:46:10 2022 +0100
[full-ci] standalone graph service with LDAP (#5199)
* standalone graph service with LDAP
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* no panic on PATCH and DELETE
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fix apitoken yaml key
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* update user, fix response codes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fix group creation return code
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* remove unknown user property
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* fix create return code checks in graph feature context
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* updating uses 200 OK when returning a body
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* revert user statusCreated change for now
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* revert return code changes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date: Thu Dec 8 14:44:53 2022 +0100
remove deprecated use of ioutil (#5205)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Merge: 881b60926f7a83024a
Author: David Christofas <dchristofas@owncloud.com>
Date: Thu Dec 8 11:35:39 2022 +0100
Merge pull request #5204 from owncloud/dependabot/go_modules/github.com/go-micro/plugins/v4/registry/mdns-1.2.0
Bump github.com/go-micro/plugins/v4/registry/mdns from 1.1.0 to 1.2.0
Merge: f425fa868464618e26
Author: David Christofas <dchristofas@owncloud.com>
Date: Wed Dec 7 14:04:48 2022 +0100
Merge pull request #5202 from owncloud/dependabot/go_modules/golang.org/x/image-0.2.0
Bump golang.org/x/image from 0.1.0 to 0.2.0