Skip to content

Commit

Permalink
fix: updated client ceritifcate credential options to include certifi…
Browse files Browse the repository at this point in the history
…cate chain
  • Loading branch information
Zach Jones committed Oct 18, 2022
1 parent 802f034 commit 3707b8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/env/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ func (d *dev) FPNewClientCertificateCredential(tenantID string) (*azidentity.Cli
fpPrivateKey, fpCertificates := d.fpCertificateRefresher.GetCertificates()

credential, err := azidentity.NewClientCertificateCredential(tenantID, d.fpClientID, fpCertificates, fpPrivateKey, &azidentity.ClientCertificateCredentialOptions{
AuthorityHost: d.Environment().AuthorityHost,
AuthorityHost: d.Environment().AuthorityHost,
SendCertificateChain: true,
})

if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion pkg/env/prod.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ func (p *prod) FPNewClientCertificateCredential(tenantID string) (*azidentity.Cl
fpPrivateKey, fpCertificates := p.fpCertificateRefresher.GetCertificates()

credential, err := azidentity.NewClientCertificateCredential(tenantID, p.fpClientID, fpCertificates, fpPrivateKey, &azidentity.ClientCertificateCredentialOptions{
AuthorityHost: p.Environment().AuthorityHost,
AuthorityHost: p.Environment().AuthorityHost,
SendCertificateChain: true,
})

if err != nil {
Expand Down

0 comments on commit 3707b8d

Please sign in to comment.