pass the current credentials for claims

This commit is contained in:
Harshavardhana 2021-08-12 18:24:04 -07:00
parent 77b8885a24
commit ce28e904c9

View File

@ -136,7 +136,7 @@ func checkKeyValid(r *http.Request, accessKey string) (auth.Credentials, bool, A
if !ok {
return cred, false, ErrInvalidAccessKeyID
}
claims, s3Err := checkClaimsFromToken(r, cred)
claims, s3Err := checkClaimsFromToken(r, ucred)
if s3Err != ErrNone {
return cred, false, s3Err
}