Skip to content

Commit 9fe50b0

Browse files
committed
Use option.WithAuthCredentialsFile for Google API auth
1 parent cf8479d commit 9fe50b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cas/cloudcas/cloudcas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type CloudCAS struct {
9090
var newCertificateAuthorityClient = func(ctx context.Context, credentialsFile string) (CertificateAuthorityClient, error) {
9191
var cloudOpts []option.ClientOption
9292
if credentialsFile != "" {
93-
cloudOpts = append(cloudOpts, option.WithCredentialsFile(credentialsFile))
93+
cloudOpts = append(cloudOpts, option.WithAuthCredentialsFile(option.ServiceAccount, credentialsFile))
9494
}
9595
client, err := privateca.NewCertificateAuthorityClient(ctx, cloudOpts...)
9696
if err != nil {

0 commit comments

Comments
 (0)