/
oauth_token_response.go
33 lines (25 loc) · 1.27 KB
/
oauth_token_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* ORY Hydra - Cloud Native OAuth 2.0 and OpenID Connect Server
*
* Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. Keep in mind that this document reflects the latest branch, always. Support for versioned documentation is coming in the future.
*
* OpenAPI spec version: Latest
* Contact: hi@ory.am
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package swagger
// The token response
type OauthTokenResponse struct {
// The access token issued by the authorization server.
AccessToken string `json:"access_token,omitempty"`
// The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.
ExpiresIn int64 `json:"expires_in,omitempty"`
// To retrieve a refresh token request the id_token scope.
IdToken int64 `json:"id_token,omitempty"`
// The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request.
RefreshToken string `json:"refresh_token,omitempty"`
// The scope of the access token
Scope int64 `json:"scope,omitempty"`
// The type of the token issued
TokenType string `json:"token_type,omitempty"`
}