From f22b775e32ce1fc4064d96572f613ef0bdc6c9f3 Mon Sep 17 00:00:00 2001 From: Craig Jellick Date: Fri, 16 Feb 2018 17:25:39 -0700 Subject: [PATCH] token expiration fields --- apis/management.cattle.io/v3/authn_types.go | 4 +++- apis/management.cattle.io/v3public/authn_types.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/authn_types.go b/apis/management.cattle.io/v3/authn_types.go index 2dc5479b..2a32bd55 100644 --- a/apis/management.cattle.io/v3/authn_types.go +++ b/apis/management.cattle.io/v3/authn_types.go @@ -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 { diff --git a/apis/management.cattle.io/v3public/authn_types.go b/apis/management.cattle.io/v3public/authn_types.go index 9b6c881d..dce3fa1b 100644 --- a/apis/management.cattle.io/v3public/authn_types.go +++ b/apis/management.cattle.io/v3public/authn_types.go @@ -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 }