mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
Have simpler JWT authentication. (#3501)
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ func (a authHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
} else if aType == authTypeJWT {
|
||||
// Validate Authorization header if its valid for JWT request.
|
||||
if !isJWTReqAuthenticated(r) {
|
||||
if !isHTTPRequestValid(r) {
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user