Browse Source

s3: deny anonymous type

pull/1206/head
Chris Lu 5 years ago
parent
commit
48b7ad5fa8
  1. 8
      weed/s3api/auth_credentials.go

8
weed/s3api/auth_credentials.go

@ -134,10 +134,14 @@ func (iam *IdentityAccessManagement) authRequest(r *http.Request, actions []Acti
glog.V(3).Infof("v4 auth type")
identity, s3Err = iam.reqSignatureV4Verify(r)
case authTypePostPolicy:
return ErrNotImplemented;
glog.V(3).Infof("post policy auth type")
return ErrNotImplemented
case authTypeJWT:
return ErrNotImplemented;
glog.V(3).Infof("jwt auth type")
return ErrNotImplemented
case authTypeAnonymous:
return ErrAccessDenied
default:
return ErrNotImplemented
}

Loading…
Cancel
Save