Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for storageServerRequestValidate (0.23 sec)

  1. cmd/routers.go

    	registerLockRESTHandlers(lockGrid)
    
    	// Add lock grid to router
    	router.Handle(grid.RouteLockPath, adminMiddleware(lockGrid.Handler(storageServerRequestValidate), noGZFlag, noObjLayerFlag))
    
    	// Add grid to router
    	router.Handle(grid.RoutePath, adminMiddleware(commonGrid.Handler(storageServerRequestValidate), noGZFlag, noObjLayerFlag))
    }
    
    // List of some generic middlewares which are applied for all incoming requests.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. cmd/storage-rest-server.go

    	if !owner {
    		return errAuthentication
    	}
    
    	return nil
    }
    
    // Authenticates storage client's requests and validates for skewed time.
    func storageServerRequestValidate(r *http.Request) error {
    	token, err := jwtreq.AuthorizationHeaderExtractor.ExtractToken(r)
    	if err != nil {
    		if err == jwtreq.ErrNoTokenInRequest {
    			return errNoAuthToken
    		}
    		return errMalformedAuth
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    	w.Write([]byte(err.Error()))
    }
    
    // IsValid - To authenticate and verify the time difference.
    func (s *peerRESTServer) IsValid(w http.ResponseWriter, r *http.Request) bool {
    	if err := storageServerRequestValidate(r); err != nil {
    		s.writeErrorResponse(w, err)
    		return false
    	}
    	return true
    }
    
    // GetBandwidth gets the bandwidth for the buckets requested.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
Back to top