Skip to content

Commit 5290d04

Browse files
updated keyfactor go client to 1.2, passing scopes and audience on token request.
1 parent 3c68be1 commit 5290d04

File tree

5 files changed

+78
-43
lines changed

5 files changed

+78
-43
lines changed

client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ func newClient(config *keyfactorConfig, b *keyfactorBackend) (*keyfactorClient,
8888
WithClientSecret(config.ClientSecret).
8989
WithTokenUrl(config.TokenUrl).
9090
WithAccessToken(config.AccessToken).
91+
WithScopes(config.Scopes).
92+
WithAudience(config.Audience).
9193
Authenticate()
9294

9395
if oErr != nil {

go.mod

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@ go 1.23
55
toolchain go1.23.3
66

77
require (
8-
github.com/Keyfactor/keyfactor-auth-client-go v1.0.0-rc.2
9-
github.com/Keyfactor/keyfactor-go-client/v3 v3.0.0
8+
github.com/Keyfactor/keyfactor-auth-client-go v1.2.0
109
github.com/hashicorp/errwrap v1.0.0
1110
github.com/hashicorp/go-hclog v1.5.0
1211
github.com/hashicorp/vault/api v1.1.1
1312
github.com/hashicorp/vault/sdk v0.2.1
1413
)
1514

1615
require (
17-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2 // indirect
16+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 // indirect
17+
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.1 // indirect
18+
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
19+
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.3.0 // indirect
20+
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.1.0 // indirect
21+
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 // indirect
1822
github.com/armon/go-metrics v0.3.3 // indirect
1923
github.com/armon/go-radix v1.0.0 // indirect
2024
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
2125
github.com/fatih/color v1.13.0 // indirect
26+
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
2227
github.com/golang/protobuf v1.4.2 // indirect
2328
github.com/golang/snappy v0.0.1 // indirect
29+
github.com/google/uuid v1.6.0 // indirect
2430
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
2531
github.com/hashicorp/go-immutable-radix v1.1.0 // indirect
2632
github.com/hashicorp/go-kms-wrapping/entropy v0.1.0 // indirect
@@ -33,8 +39,8 @@ require (
3339
github.com/hashicorp/go-version v1.2.0 // indirect
3440
github.com/hashicorp/golang-lru v0.5.3 // indirect
3541
github.com/hashicorp/hcl v1.0.0 // indirect
36-
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
3742
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
43+
github.com/kylelemons/godebug v1.1.0 // indirect
3844
github.com/mattn/go-colorable v0.1.13 // indirect
3945
github.com/mattn/go-isatty v0.0.19 // indirect
4046
github.com/mitchellh/copystructure v1.0.0 // indirect
@@ -44,15 +50,14 @@ require (
4450
github.com/mitchellh/reflectwalk v1.0.0 // indirect
4551
github.com/oklog/run v1.0.0 // indirect
4652
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
53+
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
4754
github.com/ryanuber/go-glob v1.0.0 // indirect
48-
github.com/spbsoluble/go-pkcs12 v0.3.3 // indirect
49-
go.mozilla.org/pkcs7 v0.9.0 // indirect
5055
go.uber.org/atomic v1.6.0 // indirect
51-
golang.org/x/crypto v0.11.0 // indirect
52-
golang.org/x/net v0.10.0 // indirect
53-
golang.org/x/oauth2 v0.23.0 // indirect
54-
golang.org/x/sys v0.12.0 // indirect
55-
golang.org/x/text v0.11.0 // indirect
56+
golang.org/x/crypto v0.32.0 // indirect
57+
golang.org/x/net v0.34.0 // indirect
58+
golang.org/x/oauth2 v0.25.0 // indirect
59+
golang.org/x/sys v0.29.0 // indirect
60+
golang.org/x/text v0.21.0 // indirect
5661
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 // indirect
5762
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
5863
google.golang.org/grpc v1.29.1 // indirect

0 commit comments

Comments
 (0)