1
0
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:
Max Korp
2018-12-03 09:33:52 -07:00
committed by Craig Jellick
parent c0e0d4dd2b
commit c50d24d4b9
2 changed files with 4 additions and 1 deletions

View File

@@ -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 {