File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ func NewConfidentialIdentityProvider(opts ConfidentialIdentityProviderOptions) (
124124 }
125125 case ClientCertificateCredentialType :
126126 // 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" )
127+ if opts .ClientCert == nil || len ( opts . ClientCert ) == 0 {
128+ return nil , fmt .Errorf ("non-empty client certificate is required when using client certificate credentials" )
129129 }
130130 if opts .ClientPrivateKey == nil {
131131 return nil , fmt .Errorf ("client private key is required when using client certificate credentials" )
You can’t perform that action at this time.
0 commit comments