From 66d501a35dba2d4401d97e487d238bb75a7cc8a0 Mon Sep 17 00:00:00 2001 From: CI Date: Fri, 30 Jun 2023 07:03:27 +0000 Subject: [PATCH] Authlete CI - fc213e8bf5f622d0985266920652bde2ce5e73e0 --- api/openapi.yaml | 5 +++-- client.go | 5 ++++- docs/UserinfoResponse.md | 8 ++++---- go.sum | 30 +++++++++++++++++------------- model_userinfo_response.go | 12 ++++++------ 5 files changed, 34 insertions(+), 26 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 77f4396..298974b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -19093,7 +19093,7 @@ components: type: object userinfo_response: example: - clientId: clientId + clientId: 0 subject: subject resultCode: resultCode clientEntityId: clientEntityId @@ -19166,7 +19166,8 @@ components: clientId: description: | The ID of the client application which is associated with the access token. - type: string + format: int64 + type: integer clientIdAlias: description: | The client ID alias when the authorization request for the access token was made. diff --git a/client.go b/client.go index 4959fe5..a1a90a8 100644 --- a/client.go +++ b/client.go @@ -295,7 +295,10 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { resp, err := c.cfg.HTTPClient.Do(request) if err != nil { - dump, _ := httputil.DumpResponse(resp, true) + if resp == nil { + return resp, err + } + dump, _ := httputil.DumpResponse(resp, true) return resp, errors.New(fmt.Sprintf("%s with Response body: %s", err.Error(), string(dump))) } diff --git a/docs/UserinfoResponse.md b/docs/UserinfoResponse.md index 215d430..cd5391a 100644 --- a/docs/UserinfoResponse.md +++ b/docs/UserinfoResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **ResultMessage** | Pointer to **string** | A short message which explains the result of the API call. | [optional] **Action** | Pointer to **string** | The next action that the authorization server implementation should take. | [optional] **Claims** | Pointer to **[]string** | The list of claims that the client application requests to be embedded in the ID token. | [optional] -**ClientId** | Pointer to **string** | The ID of the client application which is associated with the access token. | [optional] +**ClientId** | Pointer to **int64** | The ID of the client application which is associated with the access token. | [optional] **ClientIdAlias** | Pointer to **string** | The client ID alias when the authorization request for the access token was made. | [optional] **ClientIdAliasUsed** | Pointer to **bool** | The flag which indicates whether the client ID alias was used when the authorization request for the access token was made. | [optional] **ResponseContent** | Pointer to **string** | The content that the authorization server implementation can use as the value of `WWW-Authenticate` header on errors. | [optional] @@ -147,20 +147,20 @@ HasClaims returns a boolean if a field has been set. ### GetClientId -`func (o *UserinfoResponse) GetClientId() string` +`func (o *UserinfoResponse) GetClientId() int64` GetClientId returns the ClientId field if non-nil, zero value otherwise. ### GetClientIdOk -`func (o *UserinfoResponse) GetClientIdOk() (*string, bool)` +`func (o *UserinfoResponse) GetClientIdOk() (*int64, bool)` GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetClientId -`func (o *UserinfoResponse) SetClientId(v string)` +`func (o *UserinfoResponse) SetClientId(v int64)` SetClientId sets ClientId field to given value. diff --git a/go.sum b/go.sum index 734252e..6a56e69 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,17 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/model_userinfo_response.go b/model_userinfo_response.go index 4e39544..ee98a32 100644 --- a/model_userinfo_response.go +++ b/model_userinfo_response.go @@ -28,7 +28,7 @@ type UserinfoResponse struct { // The list of claims that the client application requests to be embedded in the ID token. Claims []string `json:"claims,omitempty"` // The ID of the client application which is associated with the access token. - ClientId *string `json:"clientId,omitempty"` + ClientId *int64 `json:"clientId,omitempty"` // The client ID alias when the authorization request for the access token was made. ClientIdAlias *string `json:"clientIdAlias,omitempty"` // The flag which indicates whether the client ID alias was used when the authorization request for the access token was made. @@ -209,9 +209,9 @@ func (o *UserinfoResponse) SetClaims(v []string) { } // GetClientId returns the ClientId field value if set, zero value otherwise. -func (o *UserinfoResponse) GetClientId() string { +func (o *UserinfoResponse) GetClientId() int64 { if o == nil || isNil(o.ClientId) { - var ret string + var ret int64 return ret } return *o.ClientId @@ -219,7 +219,7 @@ func (o *UserinfoResponse) GetClientId() string { // GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserinfoResponse) GetClientIdOk() (*string, bool) { +func (o *UserinfoResponse) GetClientIdOk() (*int64, bool) { if o == nil || isNil(o.ClientId) { return nil, false } @@ -235,8 +235,8 @@ func (o *UserinfoResponse) HasClientId() bool { return false } -// SetClientId gets a reference to the given string and assigns it to the ClientId field. -func (o *UserinfoResponse) SetClientId(v string) { +// SetClientId gets a reference to the given int64 and assigns it to the ClientId field. +func (o *UserinfoResponse) SetClientId(v int64) { o.ClientId = &v }