1
0
mirror of https://github.com/rancher/types.git synced 2025-07-06 18:26:13 +00:00

token expiration fields

This commit is contained in:
Craig Jellick 2018-02-16 17:25:39 -07:00
parent 70d61f81e1
commit f22b775e32
2 changed files with 4 additions and 2 deletions

View File

@ -14,10 +14,12 @@ type Token struct {
ProviderInfo map[string]string `json:"providerInfo,omitempty"`
UserID string `json:"userId" norman:"type=reference[user]"`
AuthProvider string `json:"authProvider"`
TTLMillis int `json:"ttl"`
TTLMillis int64 `json:"ttl"`
LastUpdateTime string `json:"lastUpdateTime"`
IsDerived bool `json:"isDerived"`
Description string `json:"description"`
Expired bool `json:"expired"`
ExpiresAt string `json:"expiresAt"`
}
type User struct {

View File

@ -12,7 +12,7 @@ type AuthProvider struct {
}
type GenericLogin struct {
TTLMillis int `json:"ttl,omitempty"`
TTLMillis int64 `json:"ttl,omitempty"`
Description string `json:"description,omitempty" norman:"type=string,required"`
ResponseType string `json:"responseType,omitempty" norman:"type=string,required"` //json or cookie
}