Skip to content

Commit

Permalink
Set ouath user token expiration time to 365 days
Browse files Browse the repository at this point in the history
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] #332
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1959776
Related-Issue: #331
  • Loading branch information
karelyatin authored and praveenkumar committed Dec 23, 2024
1 parent 92665cd commit add798e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oauth_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit add798e

Please sign in to comment.