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 d1b630f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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.Empty(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 d1b630f

Please sign in to comment.