Skip to content

Commit

Permalink
Add Name to the Oauth Client Payload
Browse files Browse the repository at this point in the history
Fixes #461
  • Loading branch information
barrettclark committed Jul 15, 2022
1 parent b2dd7ab commit 1a4f8aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# Unreleased

# v1.6.0
* Add `Name` field to `OAuthClient` by @barrettclark [#466](https://github.com/hashicorp/go-tfe/pull/466)

# v1.5.0

## Enhancements
Expand Down
1 change: 1 addition & 0 deletions oauth_client.go
Expand Up @@ -73,6 +73,7 @@ type OAuthClient struct {
HTTPURL string `jsonapi:"attr,http-url"`
Key string `jsonapi:"attr,key"`
RSAPublicKey string `jsonapi:"attr,rsa-public-key"`
Name *string `jsonapi:"attr,name"`
Secret string `jsonapi:"attr,secret"`
ServiceProvider ServiceProviderType `jsonapi:"attr,service-provider"`
ServiceProviderName string `jsonapi:"attr,service-provider-display-name"`
Expand Down
1 change: 1 addition & 0 deletions oauth_client_integration_test.go
Expand Up @@ -109,6 +109,7 @@ func TestOAuthClientsCreate(t *testing.T) {
oc, err := client.OAuthClients.Create(ctx, orgTest.Name, options)
require.NoError(t, err)
assert.NotEmpty(t, oc.ID)
assert.Nil(t, oc.Name)
assert.Equal(t, "https://api.github.com", oc.APIURL)
assert.Equal(t, "https://github.com", oc.HTTPURL)
assert.Equal(t, 1, len(oc.OAuthTokens))
Expand Down

0 comments on commit 1a4f8aa

Please sign in to comment.