Commit Graph

192 Commits

Author SHA1 Message Date
David Christofas
c4881f5736 Merge pull request #4374 from owncloud/rewrite-auth-middleware
[full-ci] Rewrite of the authentication middleware
2022-08-22 16:39:03 +02:00
David Christofas
dfe703291f replace strings.Title with cases.Title 2022-08-22 15:26:00 +02:00
David Christofas
12d42e0074 add missing comments 2022-08-22 14:24:12 +02:00
Willy Kloucek
15c1a99ddc Merge pull request #4405 from wkloucek/config-validation-line-break-and-help
ensure a linebreak after config validation errors and do not parse config for help
2022-08-22 11:12:22 +02:00
Willy Kloucek
9f2be9f4f9 remove Log prefix from configlog functions 2022-08-22 08:08:18 +02:00
Martin
6d54377447 Merge pull request #4411 from wkloucek/fix-app-registry-default-mimetypes
fix configuration of mimetypes for the app registry
2022-08-20 09:58:32 +02:00
Willy Kloucek
e58eaabdeb move config parse error logging into function to ensure new lines and don't parse config for help 2022-08-18 15:27:28 +02:00
Willy Kloucek
46706fff32 Merge pull request #4407 from wkloucek/rename-extensions-to-services-reloaded
rename extensions to services (leftover occurences)
2022-08-18 14:03:20 +02:00
Willy Kloucek
d93fd7ab4d fix configuration of mimetypes for the app registry 2022-08-18 11:58:10 +02:00
Willy Kloucek
60689c9c1a improve unsupervised description 2022-08-18 10:59:35 +02:00
Willy Kloucek
dbcd78e6ef Merge pull request #4403 from wkloucek/storage-users-uploads-category
restructure storage-users upload command
2022-08-18 10:56:47 +02:00
Willy Kloucek
ef8c600cf7 Merge pull request #4376 from wkloucek/open-with-web-endpoitn
[full-ci] add open-with-web endpoint
2022-08-18 10:21:01 +02:00
Willy Kloucek
70bce6b3f0 remove leading slash 2022-08-18 09:35:48 +02:00
Willy Kloucek
08c7743df9 add header to clean up and rename purge to clean in leftover places 2022-08-18 09:20:58 +02:00
Willy Kloucek
6154466bbc rename extensions to services (leftover occurences) 2022-08-17 15:36:52 +02:00
Willy Kloucek
12204e4d91 remove category from uploads section 2022-08-17 15:05:26 +02:00
Willy Kloucek
7d76650e5f further improve descriptions 2022-08-17 14:58:31 +02:00
Willy Kloucek
ea1484250f improve usage text
Co-authored-by: Martin <github@diemattels.at>
2022-08-17 14:29:42 +02:00
jkoberg
152ce60d87 fix audit service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-08-17 14:20:05 +02:00
jkoberg
66ff20442f use .golangci.yml
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-08-17 14:20:05 +02:00
Willy Kloucek
82acd83c61 remove fmt.Sprintf 2022-08-17 12:56:12 +02:00
Willy Kloucek
c0f0b0efb4 move the uploads command into a category 2022-08-17 12:40:02 +02:00
Willy Kloucek
067e614713 implement review feedback 2022-08-17 12:25:55 +02:00
Willy Kloucek
5730ad6d5b add documentation, wire configuration 2022-08-17 12:13:47 +02:00
Willy Kloucek
0a9790105d introduce staticurlparams 2022-08-17 12:13:47 +02:00
Willy Kloucek
f9a25c0625 add open-with-web endpoint, needs cs3org/reva#3143 2022-08-17 12:13:47 +02:00
David Christofas
b5ef10dc2b add missing comments and changelog 2022-08-16 16:53:27 +02:00
David Christofas
3f25ca2059 add unprotected path prefix for parallel deployment 2022-08-16 15:45:22 +02:00
David Christofas
905ead629c add unprotected path prefix for external apps 2022-08-16 15:16:48 +02:00
David Christofas
78d85b683d add missing comments 2022-08-16 12:47:44 +02:00
David Christofas
864438b2de add missing unprotected path 2022-08-15 16:04:14 +02:00
David Christofas
3ebfcbff1e add missing unprotected path 2022-08-15 11:38:04 +02:00
Willy Kloucek
19e3169800 let idp init private key also if the file already exists and is empty 2022-08-15 11:15:38 +02:00
Michael Barz
47e52fc357 Merge pull request #4365 from rhafer/issue/4276
Add `ocis idm resetpassword` subcommand
2022-08-12 15:45:09 +02:00
David Christofas
5d45f0e856 fix logic of when to add the www-authenticate headers 2022-08-12 10:48:37 +02:00
David Christofas
036c466425 add missing unprotected paths 2022-08-12 10:48:33 +02:00
David Christofas
32f68f91ff add missing www-authentication header on failed authentication 2022-08-12 10:48:29 +02:00
David Christofas
d271ae2451 fix some authentication cases 2022-08-12 10:48:25 +02:00
David Christofas
06ffd9cf8a some more cleaning up 2022-08-12 10:48:21 +02:00
David Christofas
9347657370 remove the oidc tests since they aren't testing anything at the moment
I admit it would be better to implement the tests but I tried and it is a bit tricky since we can't mock everything we would need to mock. I'll wan to get these changes in first and later in the near future we should revisit the auth middleware architecture and refactor it a bit more to be more testable and future proof.
2022-08-12 10:48:17 +02:00
David Christofas
17a4e65f08 add tests for the public share auth middleware 2022-08-12 10:48:13 +02:00
David Christofas
7bc1305cb4 add tests for the basic auth middleware 2022-08-12 10:48:09 +02:00
David Christofas
ef020920e8 update authentication tests 2022-08-12 10:48:04 +02:00
David Christofas
ddfc01bff9 refactor unprotected paths check 2022-08-12 10:47:51 +02:00
David Christofas
f35c8b9205 clean up the authenticators middlewares 2022-08-12 10:47:48 +02:00
David Christofas
e96819bce8 rewrite the auth middleware
The old approach of the authentication middlewares had the problem that when an authenticator could not authenticate a request it would still send it to the next handler, in case that the next one can authenticate it. But if no authenticator could successfully authenticate the request, it would still be handled, which leads to unauthorized access.
2022-08-12 10:47:43 +02:00
Michael Barz
77ade496a7 update web to v5.7.0-rc9 2022-08-10 19:11:34 +02:00
root
eb5e9675d6 Add ocis idm resetpassword subcommand
This allows resetting the ocis admin user's password (when ocis is
not running) when running with the builtin LDAP server.

Fixes #4084
2022-08-09 12:34:36 +02:00
Michael Barz
a503e808c0 Merge pull request #4256 from aduffeck/cleanup-uploads
Add a cli for listing and cleaning up expired uploads
2022-08-09 12:09:17 +02:00
Michael Barz
0f4597da92 Merge pull request #4363 from owncloud/fix-quota-unrestricted
fix unrestricted quota
2022-08-08 20:57:44 +02:00