We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2631968 commit 1fca220Copy full SHA for 1fca220
identity/confidential_identity_provider.go
@@ -124,8 +124,8 @@ func NewConfidentialIdentityProvider(opts ConfidentialIdentityProviderOptions) (
124
}
125
case ClientCertificateCredentialType:
126
// ClientCertificateCredentialType is the type of credentials that uses a client certificate to authenticate.
127
- if opts.ClientCert == nil {
128
- return nil, fmt.Errorf("client certificate is required when using client certificate credentials")
+ if opts.ClientCert == nil || len(opts.ClientCert) == 0 {
+ return nil, fmt.Errorf("non-empty client certificate is required when using client certificate credentials")
129
130
if opts.ClientPrivateKey == nil {
131
return nil, fmt.Errorf("client private key is required when using client certificate credentials")
0 commit comments