mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Do not attempt to generate URLToken for anonymous downloads (#5078)
This is a regression since last release - fixes #5076
This commit is contained in:
committed by
Nitish Tiwari
parent
75865efb0e
commit
f25bec6bf1
@@ -93,6 +93,9 @@ func keyFuncCallback(jwtToken *jwtgo.Token) (interface{}, error) {
|
||||
}
|
||||
|
||||
func isAuthTokenValid(tokenString string) bool {
|
||||
if tokenString == "" {
|
||||
return false
|
||||
}
|
||||
var claims jwtgo.StandardClaims
|
||||
jwtToken, err := jwtgo.ParseWithClaims(tokenString, &claims, keyFuncCallback)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user