S3 signature V4 verify

This commit is contained in:
DullJZ
2025-10-01 20:36:53 +08:00
parent 1183775101
commit 48bc2d9b11
4 changed files with 36 additions and 41 deletions

View File

@@ -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,