Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkAdminRequestAuth (0.07 sec)

  1. cmd/auth-handler.go

    	logger.GetReqInfo(ctx).Region = globalSite.Region()
    
    	return cred, owner, ErrNone
    }
    
    // checkAdminRequestAuth checks for authentication and authorization for the incoming
    // request. It only accepts V2 and V4 requests. Presigned, JWT and anonymous requests
    // are automatically rejected.
    func checkAdminRequestAuth(ctx context.Context, r *http.Request, action policy.AdminAction, region string) (auth.Credentials, APIErrorCode) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  2. cmd/auth-handler_test.go

    		{Request: mustNewPresignedRequest(http.MethodGet, "http://127.0.0.1:9000", 0, nil, t), ErrCode: ErrAccessDenied},
    	}
    	for i, testCase := range testCases {
    		if _, s3Error := checkAdminRequestAuth(ctx, testCase.Request, policy.AllAdminActions, globalSite.Region()); s3Error != testCase.ErrCode {
    			t.Errorf("Test %d: Unexpected s3error returned wanted %d, got %d", i, testCase.ErrCode, s3Error)
    		}
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top