add missing comments and changelog

This commit is contained in:
David Christofas
2022-08-16 16:53:27 +02:00
parent 3f25ca2059
commit b5ef10dc2b
3 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
Enhancement: Rewrite of the request authentication middleware
There were some flaws in the authentication middleware which were resolved by this rewrite.
This rewrite also introduced the need to manually mark certain paths as "unprotected" if
requests to these paths must not be authenticated.
https://github.com/owncloud/ocis/pull/4374

View File

@@ -18,6 +18,8 @@ const (
_paramExpiration = "expiration"
)
// PublicShareAuthenticator is the authenticator which can authenticate public share requests.
// It will add the share owner into the request context.
type PublicShareAuthenticator struct {
Logger log.Logger
RevaGatewayClient gateway.GatewayAPIClient

View File

@@ -38,6 +38,7 @@ var (
}
)
// SignedURLAuthenticator is the authenticator responsible for authenticating signed URL requests.
type SignedURLAuthenticator struct {
Logger log.Logger
PreSignedURLConfig config.PreSignedURL