From 9c749a76f8608989948b28ec6de03c159fab99cd Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Fri, 13 Sep 2024 14:21:42 +0200 Subject: [PATCH] chore: do not cache unused TTL in id_token object --- pipeline/mutate/mutator_id_token.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pipeline/mutate/mutator_id_token.go b/pipeline/mutate/mutator_id_token.go index 81ce5be7f..299ee6483 100644 --- a/pipeline/mutate/mutator_id_token.go +++ b/pipeline/mutate/mutator_id_token.go @@ -72,7 +72,6 @@ func (a *MutatorIDToken) WithCache(t *template.Template) { type idTokenCacheContainer struct { ExpiresAt time.Time - TTL time.Duration Token string } @@ -111,7 +110,6 @@ func (a *MutatorIDToken) tokenToCache(config *CredentialsIDTokenConfig, session a.tokenCache.SetWithTTL( key, &idTokenCacheContainer{ - TTL: ttl, ExpiresAt: expiresAt, Token: token, },