Commit Graph

7656 Commits

Author SHA1 Message Date
Alex Unger
a73fd54b85 Merge pull request #2779 from owncloud/claim-selector-basic-auth 2021-12-06 11:01:09 +01:00
Willy Kloucek
0d34ed55f0 Merge pull request #2838 from owncloud/dependabot/go_modules/github.com/libregraph/lico-0.53.0
Bump github.com/libregraph/lico from 0.52.0 to 0.53.0
2021-12-06 08:58:05 +01:00
Viktor Scharf
51526e1983 Merge pull request #2830 from owncloud/apiTestQuota
[tests-only] ApiTest: state of the quota
2021-12-03 11:27:23 +01:00
dependabot[bot]
1256671d28 Bump github.com/libregraph/lico from 0.52.0 to 0.53.0
Bumps [github.com/libregraph/lico](https://github.com/libregraph/lico) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/libregraph/lico/releases)
- [Changelog](https://github.com/libregraph/lico/blob/master/CHANGELOG.md)
- [Commits](https://github.com/libregraph/lico/compare/v0.52.0...v0.53.0)

---
updated-dependencies:
- dependency-name: github.com/libregraph/lico
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 14:00:58 +00:00
Willy Kloucek
d91d4933cf Merge pull request #2836 from owncloud/dependabot/go_modules/github.com/grpc-ecosystem/grpc-gateway/v2-2.7.1
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.7.0 to 2.7.1
2021-12-02 14:47:51 +01:00
Willy Kloucek
6a4c6c7c7b Automated changelog update [skip ci] 2021-12-02 13:47:44 +00:00
Willy Kloucek
7be72efddd Merge pull request #2832 from rhafer/user-claim-fallback
OIDC: fallback to "email" if IDP doesn't provide "preferred_username" claim
2021-12-02 14:47:13 +01:00
ScharfViktor
be1c190a56 change name of the space(uniq name) 2021-12-02 10:05:28 +01:00
dependabot[bot]
2be06820de Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.7.0 to 2.7.1
Bumps [github.com/grpc-ecosystem/grpc-gateway/v2](https://github.com/grpc-ecosystem/grpc-gateway) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/grpc-ecosystem/grpc-gateway/releases)
- [Changelog](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/.goreleaser.yml)
- [Commits](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/grpc-gateway/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 06:29:48 +00:00
ScharfViktor
216a62cf2e add Given form for steps 2021-12-02 00:01:52 +01:00
Willy Kloucek
ddf62111b0 Automated changelog update [skip ci] 2021-12-01 10:09:35 +00:00
Willy Kloucek
e8e5a8a41e Merge pull request #2835 from owncloud/update-reva-79fb2995dab9
[full-ci] update reva
2021-12-01 11:09:04 +01:00
Willy Kloucek
1cdd3b1699 update reva 2021-12-01 09:37:20 +01:00
Ralf Haferkamp
5b3af35804 Merge pull request #2804 from rhafer/graph-ldap
Add (read-only) LDAP backend to Graph users/groups endpoints
2021-12-01 09:31:13 +01:00
Ralf Haferkamp
c35a0f7553 OIDC: fallback to "email" if IDP doesn't provide "preferred_username" claim
Some IDPs (e.g. Authelia) don't add the "preferred_username" claim.
Fallback to the "email" claim in that case.

Fixes: #2644
2021-11-30 17:53:44 +01:00
ScharfViktor
7a8c513cf7 add failed test to expected failures 2021-11-30 11:22:36 +01:00
ScharfViktor
581bcae709 add quotaTest 2021-11-29 21:21:10 +01:00
Willy Kloucek
d85def9b88 check cookie for before we fall back to the default policy 2021-11-29 09:51:39 +01:00
Willy Kloucek
48accc6419 Merge pull request #2827 from owncloud/fix-create-group-no-name
introduce string constants for user / group not found messages
2021-11-29 09:47:23 +01:00
Phil Davis
f5bbdbe1eb Merge pull request #2784 from owncloud/php-types-check
[Tests-Only][full-ci] enforce strict type checking for php api tests
2021-11-29 13:53:34 +05:45
Willy Kloucek
1eac1099ae introduce string constants for user / group not found messages 2021-11-29 07:34:54 +01:00
Dipak Acharya
f8b0f69dd0 [Test-Only] enforce strict type checking for php api tests 2021-11-29 11:17:20 +05:45
Phil Davis
a7dc0ce196 Automated changelog update [skip ci] 2021-11-28 11:22:34 +00:00
Phil Davis
c907e249cb Merge pull request #2825 from owncloud/fix-create-group-no-name
[full-ci] Bugfix: Disallow creation of a group with empty name via the OCS api
2021-11-28 17:04:18 +05:45
Willy Kloucek
a33b0049fc trade panic for logging on render.Render 2021-11-26 17:38:33 +01:00
Willy Kloucek
20ab79deb4 don't panic 2021-11-26 15:44:18 +01:00
Willy Kloucek
09e821178b remove expected failures 2021-11-26 13:40:55 +01:00
Willy Kloucek
0837a36ad8 Merge pull request #2824 from owncloud/dependabot/go_modules/github.com/gofrs/uuid-4.2.0incompatible
Bump github.com/gofrs/uuid from 4.1.0+incompatible to 4.2.0+incompatible
2021-11-26 13:15:44 +01:00
Willy Kloucek
e6ca10cbc4 Update changelog/unreleased/fix-create-group-without-name.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2021-11-26 13:04:22 +01:00
Willy Kloucek
dc5901b25c disallow creation of a group with empty name via the OCS api 2021-11-26 13:03:54 +01:00
Phil Davis
263ba13ffa Merge pull request #2801 from owncloud/bump-commit-id-acceptance-test-changes-waiting-2021-11
[tests-only] [full-ci] Bump commit id to use refactored core API tests
2021-11-26 17:28:03 +05:45
David Christofas
5692f8effa Merge pull request #2723 from owncloud/improver_text_preview
Allow rendering a text preview using custom fonts
2021-11-26 11:38:54 +01:00
Phil Davis
57ae1b99ea Add expected-failures for createPublicLinkShare 2021-11-26 15:41:31 +05:45
Phil Davis
7ee9300549 Add expected-failures for issue 2823 2021-11-26 14:23:58 +05:45
Phil Davis
905a1e50e4 Bump commit id to use refactored core API tests 2021-11-26 14:23:58 +05:45
dependabot[bot]
cfeb02b851 Bump github.com/gofrs/uuid from 4.1.0+incompatible to 4.2.0+incompatible
Bumps [github.com/gofrs/uuid](https://github.com/gofrs/uuid) from 4.1.0+incompatible to 4.2.0+incompatible.
- [Release notes](https://github.com/gofrs/uuid/releases)
- [Commits](https://github.com/gofrs/uuid/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: github.com/gofrs/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-26 06:32:40 +00:00
Juan Pablo Villafáñez
79e36f08ca Simplify code, remove unneeded condition 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez
8dbf0f27f4 Simplify code and add new tests 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez
5dcdac6680 Refactor to simplify the code 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez
a81a85e797 Add tests for the text analyzer and fix related issues 2021-11-25 15:42:53 +01:00
Juan Pablo Villafáñez
38acfb1dbd Allow rendering a text preview using custom fonts 2021-11-25 15:42:53 +01:00
Willy Kloucek
54d450eddd Merge pull request #2817 from owncloud/ldap-deployment-example-workover
[deployment examples]  workover LDAP example
2021-11-25 14:56:23 +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
b7ec12735b go mod tidy 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
9130cd29f3 Add helper module for LDAP with automatic reconnect
This module basically wraps ldap.Client and allows us to keep
to keep a long running LDAP connection open, which automatically
reconnects on network errors. Allows it allows to easiliy multiplex
multiple Operations on a single connection.
2021-11-25 14:30:22 +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