From c89ead3fc57e7801c7a3cdb64ae8fd5c02acc294 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Thu, 3 Dec 2020 12:19:49 +0100 Subject: [PATCH] fix linter --- proxy/go.sum | 1 + proxy/pkg/config/config.go | 2 ++ proxy/pkg/middleware/authentication.go | 1 + storage/go.sum | 1 + storage/pkg/config/config.go | 2 ++ 5 files changed, 7 insertions(+) diff --git a/proxy/go.sum b/proxy/go.sum index 0061092f2..6c42c342a 100644 --- a/proxy/go.sum +++ b/proxy/go.sum @@ -191,6 +191,7 @@ github.com/cs3org/go-cs3apis v0.0.0-20200810113633-b00aca449666 h1:E7VsSSN/2YZLS github.com/cs3org/go-cs3apis v0.0.0-20200810113633-b00aca449666/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00 h1:LVl25JaflluOchVvaHWtoCynm5OaM+VNai0IYkcCSe0= github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= +github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21 h1:mZpylrgnCgSeaZ5EznvHIPIKuaQHMHZDi2wkJtk4M8Y= github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= github.com/cs3org/reva v1.2.2-0.20200924071957-e6676516e61e/go.mod h1:DOV5SjpOBKN+aWfOHLdA4KiLQkpyC786PQaXEdRAZ0M= github.com/cs3org/reva v1.4.1-0.20201120104232-f5afafc04c3b h1:bDGaeyhTFrdLF3Pm8XdJ60ADrE4f+f/Mz2hkICvQHJM= diff --git a/proxy/pkg/config/config.go b/proxy/pkg/config/config.go index 769f597f1..ff46da12e 100644 --- a/proxy/pkg/config/config.go +++ b/proxy/pkg/config/config.go @@ -84,10 +84,12 @@ type Reva struct { Middleware Middleware } +// Middleware configures reva middlewares. type Middleware struct { Auth Auth } +// Auth configures reva http auth middleware. type Auth struct { CredentialsByUserAgent map[string]string } diff --git a/proxy/pkg/middleware/authentication.go b/proxy/pkg/middleware/authentication.go index dccef744f..c3be548e9 100644 --- a/proxy/pkg/middleware/authentication.go +++ b/proxy/pkg/middleware/authentication.go @@ -7,6 +7,7 @@ import ( "time" ) +// SupportedAuthStrategies stores configured challenges. var SupportedAuthStrategies []string // ProxyWwwAuthenticate is a list of endpoints that do not rely on reva underlying authentication, such as ocs. diff --git a/storage/go.sum b/storage/go.sum index adc9014cf..d9e2bfa67 100644 --- a/storage/go.sum +++ b/storage/go.sum @@ -195,6 +195,7 @@ github.com/cs3org/go-cs3apis v0.0.0-20200730121022-c4f3d4f7ddfd/go.mod h1:UXha4T github.com/cs3org/go-cs3apis v0.0.0-20200810113633-b00aca449666/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00 h1:LVl25JaflluOchVvaHWtoCynm5OaM+VNai0IYkcCSe0= github.com/cs3org/go-cs3apis v0.0.0-20201007120910-416ed6cf8b00/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= +github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21 h1:mZpylrgnCgSeaZ5EznvHIPIKuaQHMHZDi2wkJtk4M8Y= github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY= github.com/cs3org/reva v1.1.0/go.mod h1:fBzTrNuAKdQ62ybjpdu8nyhBin90/3/3s6DGQDCdBp4= github.com/cs3org/reva v1.2.2-0.20200924071957-e6676516e61e/go.mod h1:DOV5SjpOBKN+aWfOHLdA4KiLQkpyC786PQaXEdRAZ0M= diff --git a/storage/pkg/config/config.go b/storage/pkg/config/config.go index 33d70c214..84f211dd5 100644 --- a/storage/pkg/config/config.go +++ b/storage/pkg/config/config.go @@ -86,10 +86,12 @@ type FrontendPort struct { Middleware Middleware } +// Middleware configures reva middlewares. type Middleware struct { Auth Auth } +// Auth configures reva http auth middleware. type Auth struct { CredentialsByUserAgent map[string]string }