mirror of
https://github.com/minio/minio.git
synced 2025-11-13 15:21:36 -05:00
Generate and use access/secret keys properly (#3498)
This commit is contained in:
@@ -74,7 +74,7 @@ func isRPCTokenValid(tokenStr string) bool {
|
||||
if _, ok := token.Method.(*jwtgo.SigningMethodHMAC); !ok {
|
||||
return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"])
|
||||
}
|
||||
return []byte(jwt.SecretAccessKey), nil
|
||||
return []byte(jwt.SecretKey), nil
|
||||
})
|
||||
if err != nil {
|
||||
errorIf(err, "Unable to parse JWT token string")
|
||||
|
||||
Reference in New Issue
Block a user