diff options
Diffstat (limited to 'weed/iam/providers/provider.go')
| -rw-r--r-- | weed/iam/providers/provider.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/iam/providers/provider.go b/weed/iam/providers/provider.go index 5c1deb03d..3b7affc8e 100644 --- a/weed/iam/providers/provider.go +++ b/weed/iam/providers/provider.go @@ -47,6 +47,10 @@ type ExternalIdentity struct { // Provider is the name of the identity provider Provider string `json:"provider"` + + // TokenExpiration is the expiration time of the source identity token + // This is used to limit session duration to not exceed the token's exp claim + TokenExpiration *time.Time `json:"tokenExpiration,omitempty"` } // Validate validates the external identity structure |
