mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-06-29 23:11:23 +08:00
S3 signature V4 verify
This commit is contained in:
@@ -98,7 +98,7 @@ func (h *S3Handler) RegisterS3Routes(router *mux.Router) {
|
||||
return ok
|
||||
},
|
||||
}))
|
||||
protected.Use(middleware.BasicAuth(middleware.AuthConfig{
|
||||
protected.Use(middleware.S3Signature(middleware.S3SignatureConfig{
|
||||
Required: h.authRequired,
|
||||
Credentials: h.credentials,
|
||||
OnError: h.sendS3Error,
|
||||
|
||||
Reference in New Issue
Block a user