Skip to content

Commit ef24e51

Browse files
Merge d07e353 into 3c68be1
2 parents 3c68be1 + d07e353 commit ef24e51

File tree

7 files changed

+83
-44
lines changed

7 files changed

+83
-44
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
- 1.4.1
2+
- Updated Keyfactor Client library to 1.2.0
3+
- Now passing scopes and audience along with oAuth token request.
4+
15
- 1.4.0
26
- Added support for oAuth2 authentication to Keyfactor Command.
37
- Included the ability to specify CA and Template via command parameters

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Here is a table of the available configuration paramaters
396396
| **token_url** | string | no[^3] | | oAuth authentication: Endpoint for retreiving the authentication token |
397397
| **access_token** | string | no | | oAuth access token, if retrieved outside the context of the plugin |
398398
| **scopes** | []string (comma separated list) | no | | the defined scopes to apply to the retreived token in the oAuth authorization flow. If not provided, all available scopes for the service account will be assigned to the token upon authentication |
399-
| **audience** | []string (comma seperated list) | no | | the OpenID Connect v1.0 or oAuth v2.0 token audience |
399+
| **audience** | string | no | | the OpenID Connect v1.0 or oAuth v2.0 token audience |
400400
| **skip_verify** | bool | no | _false_ | set this to true to skip checking the CRL list of the HTTPS endpoint |
401401
| **command_cert_path** | string | no | | set this value to the local path of the CA cert if it is untrusted by the client and skip_verify is false
402402

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)