diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-02-22 14:01:04 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-02-22 14:01:04 -0800 |
| commit | 48b7ad5fa84be4b57ab09a1309245a21f4efaed2 (patch) | |
| tree | 74ae48928b3f71192a834a28873e2426da79d541 /weed/s3api/auth_credentials.go | |
| parent | f55f49970fb09897202b0c9ed5c3edba815857fc (diff) | |
| download | seaweedfs-48b7ad5fa84be4b57ab09a1309245a21f4efaed2.tar.xz seaweedfs-48b7ad5fa84be4b57ab09a1309245a21f4efaed2.zip | |
s3: deny anonymous type
Diffstat (limited to 'weed/s3api/auth_credentials.go')
| -rw-r--r-- | weed/s3api/auth_credentials.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index b7a8dbf95..6d3363232 100644 --- a/weed/s3api/auth_credentials.go +++ b/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 } |
