aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server_handlers.go
diff options
context:
space:
mode:
authorSebastian Kurfuerst <sebastian.kurfuerst@sandstorm.de>2021-12-29 12:40:41 +0100
committerSebastian Kurfuerst <sebastian.kurfuerst@sandstorm.de>2021-12-29 12:40:41 +0100
commitfcc09cef6fa9f7baa87675b1513425c233dbfffe (patch)
treebb14136248af827c8d5739c75360cca322826799 /weed/server/volume_server_handlers.go
parentd156d410efb8166ded4a0c6b206fd7b071b61c8b (diff)
downloadseaweedfs-fcc09cef6fa9f7baa87675b1513425c233dbfffe.tar.xz
seaweedfs-fcc09cef6fa9f7baa87675b1513425c233dbfffe.zip
Refactor: pass in claim type into security.DecodeJwt
Diffstat (limited to 'weed/server/volume_server_handlers.go')
-rw-r--r--weed/server/volume_server_handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.go
index ff2eccc11..510902cf0 100644
--- a/weed/server/volume_server_handlers.go
+++ b/weed/server/volume_server_handlers.go
@@ -133,7 +133,7 @@ func (vs *VolumeServer) maybeCheckJwtAuthorization(r *http.Request, vid, fid str
return false
}
- token, err := security.DecodeJwt(signingKey, tokenStr)
+ token, err := security.DecodeJwt(signingKey, tokenStr, &security.SeaweedFileIdClaims{})
if err != nil {
glog.V(1).Infof("jwt verification error from %s: %v", r.RemoteAddr, err)
return false