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:
parent
70d61f81e1
commit
f22b775e32
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user