Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for authenticateRequest (0.24 sec)

  1. cmd/object-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Check for auth type to return S3 compatible error.
    	// type to return the correct error (NoSuchKey vs AccessDenied)
    	if s3Error := authenticateRequest(ctx, r, policy.GetObjectAction); s3Error != ErrNone {
    		if getRequestAuthType(r) == authTypeAnonymous {
    			// As per "Permission" section in
    			// https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top