From 03e5c6be00f8e2f01239c0c1b7b83b28a12cec9d Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Fri, 13 Dec 2024 17:37:39 +0530 Subject: [PATCH] Set ouath user token expiration time to 365 days With [1] it was attempted to set token expiration to infinite but as described in [2] with the config set to 0, token expiration is set to default i.e 24 hours. With this patch setting it to a larger value i.e 365 days. [1] https://github.com/crc-org/snc/pull/332 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1959776 Related-Issue: #331 --- oauth_cr.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth_cr.yaml b/oauth_cr.yaml index 97d44821..65b996a3 100644 --- a/oauth_cr.yaml +++ b/oauth_cr.yaml @@ -4,7 +4,8 @@ metadata: name: cluster spec: tokenConfig: - accessTokenMaxAgeSeconds: 0 + # token max age set to 365 days + accessTokenMaxAgeSeconds: 31536000 identityProviders: - name: developer mappingMethod: claim