mirror of
https://github.com/rancher/types.git
synced 2025-08-31 21:00:16 +00:00
Add changes for auth refresh
This commit is contained in:
@@ -25,6 +25,7 @@ type Token struct {
|
||||
Expired bool `json:"expired"`
|
||||
ExpiresAt string `json:"expiresAt"`
|
||||
Current bool `json:"current"`
|
||||
Enabled *bool `json:"enabled,omitempty" norman:"default=true"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
@@ -71,6 +72,8 @@ type UserAttribute struct {
|
||||
|
||||
UserName string
|
||||
GroupPrincipals map[string]Principals // the value is a []Principal, but code generator cannot handle slice as a value
|
||||
LastRefresh string
|
||||
NeedsRefresh bool
|
||||
}
|
||||
|
||||
type Principals struct {
|
||||
|
Reference in New Issue
Block a user