Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/auth-handler.go

    	"github.com/minio/pkg/v2/policy"
    )
    
    // Verify if request has JWT.
    func isRequestJWT(r *http.Request) bool {
    	return strings.HasPrefix(r.Header.Get(xhttp.Authorization), jwtAlgorithm)
    }
    
    // Verify if request has AWS Signature Version '4'.
    func isRequestSignatureV4(r *http.Request) bool {
    	return strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV4Algorithm)
    }
    
    // Verify if request has AWS Signature Version '2'.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
Back to top