/
warden_o_auth2_access_token_authorization_response.go
46 lines (32 loc) · 1.28 KB
/
warden_o_auth2_access_token_authorization_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
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Package main ORY Keto
*
* OpenAPI spec version: Latest
* Contact: hi@ory.am
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package swagger
import (
"time"
)
type WardenOAuth2AccessTokenAuthorizationResponse struct {
// Allowed is true if the request is allowed and false otherwise.
Allowed bool `json:"allowed,omitempty"`
Aud []string `json:"aud,omitempty"`
// ClientID is the id of the OAuth2 client that requested the token.
ClientId string `json:"client_id,omitempty"`
// ExpiresAt is the expiry timestamp.
Exp time.Time `json:"exp,omitempty"`
// IssuedAt is the token creation time stamp.
Iat time.Time `json:"iat,omitempty"`
// Issuer is the id of the issuer, typically an hydra instance.
Iss string `json:"iss,omitempty"`
Nbf time.Time `json:"nbf,omitempty"`
// GrantedScopes is a list of scopes that the subject authorized when asked for consent.
Scope string `json:"scope,omitempty"`
// Session represents arbitrary session data.
Session map[string]interface{} `json:"session,omitempty"`
// Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too.
Sub string `json:"sub,omitempty"`
Username string `json:"username,omitempty"`
}