From b416763599c31701ec1299058021adf3f8c03f4c Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Wed, 20 Oct 2021 14:26:11 +0200 Subject: [PATCH] fix(public-share): basic auth password prefix fix wrong basic auth password prefix --- changelog/unreleased/public-share-auth-middleware.md | 1 + proxy/pkg/middleware/public_share_auth.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/unreleased/public-share-auth-middleware.md b/changelog/unreleased/public-share-auth-middleware.md index 566bcb845..978cd85ed 100644 --- a/changelog/unreleased/public-share-auth-middleware.md +++ b/changelog/unreleased/public-share-auth-middleware.md @@ -3,4 +3,5 @@ Enhancement: Add a middleware to authenticate public share requests Added a new middleware to authenticate public share requests. This makes it possible to use APIs which require an authenticated context with public shares. https://github.com/owncloud/ocis/pull/2536 +https://github.com/owncloud/ocis/pull/2652 https://github.com/owncloud/ocis/issues/2479 diff --git a/proxy/pkg/middleware/public_share_auth.go b/proxy/pkg/middleware/public_share_auth.go index 3cf200e17..62e8d4206 100644 --- a/proxy/pkg/middleware/public_share_auth.go +++ b/proxy/pkg/middleware/public_share_auth.go @@ -9,7 +9,7 @@ import ( const ( headerRevaAccessToken = "x-access-token" headerShareToken = "public-token" - basicAuthPasswordPrefix = "basic|" + basicAuthPasswordPrefix = "password|" authenticationType = "publicshares" )