Skip to content

Commit dcd3dc6

Browse files
committed
fix: [OCISDEV-330] add OCS v2 capabilities endpoint to public paths
Following the same behavior as OCS v1, we added the OCS v2 capabilities endpoint to the public paths.
1 parent f016273 commit dcd3dc6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: Add OCS v2 capabilities endpoint to public paths
2+
3+
Following the same behavior as OCS v1, we added the OCS v2 capabilities endpoint to the public paths.
4+
5+
https://github.com/owncloud/ocis/pull/11665

services/proxy/pkg/middleware/authentication.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ var (
2323
ProxyWwwAuthenticate = []regexp.Regexp{*regexp.MustCompile("/ocs/v[12].php/cloud/")}
2424

2525
_publicPaths = [...]string{
26-
"/dav/public-files/",
2726
"/remote.php/dav/ocm/",
2827
"/dav/ocm/",
2928
"/ocm/",
3029
"/remote.php/dav/public-files/",
30+
"/dav/public-files/",
3131
"/ocs/v1.php/apps/files_sharing/api/v1/tokeninfo/unprotected",
3232
"/ocs/v2.php/apps/files_sharing/api/v1/tokeninfo/unprotected",
3333
"/ocs/v1.php/cloud/capabilities",
34+
"/ocs/v2.php/cloud/capabilities",
3435
"/ocs/v1.php/cloud/user/signing-key",
3536
"/ocs/v2.php/cloud/user/signing-key",
3637
"/ocs/v2.php/apps/notifications/api/v1/notifications/sse",

0 commit comments

Comments
 (0)