mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-20 12:39:12 -06:00
add missing comments and changelog
This commit is contained in:
7
changelog/unreleased/rewrite-authentication.md
Normal file
7
changelog/unreleased/rewrite-authentication.md
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -38,6 +38,7 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
// SignedURLAuthenticator is the authenticator responsible for authenticating signed URL requests.
|
||||
type SignedURLAuthenticator struct {
|
||||
Logger log.Logger
|
||||
PreSignedURLConfig config.PreSignedURL
|
||||
|
||||
Reference in New Issue
Block a user