You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check if a valid authentication type is provided.
95
-
_, err=authHeaders.GetAuthType()
96
-
iferr!=nil {
92
+
if!authHeaders.IsValid() {
97
93
returnnil, fmt.Errorf("either %s header for token authentication or (%s and %s) headers for client certificate authentication required", CustomAuthorizationHeader, CustomClientCertificateDataHeader, CustomClientKeyDataHeader)
98
94
}
99
95
100
96
returnauthHeaders, nil
101
97
}
102
98
103
-
// GetAuthType returns the authentication type based on the provided headers.
0 commit comments