mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: ensure OAuth2 refresh tokens outlive access tokens (#19769)
This commit is contained in:
+4
@@ -25,6 +25,10 @@ OPTIONS:
|
||||
systemd. This directory is NOT safe to be configured as a shared
|
||||
directory across coderd/provisionerd replicas.
|
||||
|
||||
--default-oauth-refresh-lifetime duration, $CODER_DEFAULT_OAUTH_REFRESH_LIFETIME (default: 720h0m0s)
|
||||
The default lifetime duration for OAuth2 refresh tokens. This controls
|
||||
how long refresh tokens remain valid after issuance or rotation.
|
||||
|
||||
--default-token-lifetime duration, $CODER_DEFAULT_TOKEN_LIFETIME (default: 168h0m0s)
|
||||
The default lifetime duration for API tokens. This value is used when
|
||||
creating a token without specifying a duration, such as when
|
||||
|
||||
+4
@@ -454,6 +454,10 @@ updateCheck: false
|
||||
# IDE plugin.
|
||||
# (default: 168h0m0s, type: duration)
|
||||
defaultTokenLifetime: 168h0m0s
|
||||
# The default lifetime duration for OAuth2 refresh tokens. This controls how long
|
||||
# refresh tokens remain valid after issuance or rotation.
|
||||
# (default: 720h0m0s, type: duration)
|
||||
defaultOAuthRefreshLifetime: 720h0m0s
|
||||
# Expose the swagger endpoint via /swagger.
|
||||
# (default: <unset>, type: bool)
|
||||
enableSwagger: false
|
||||
|
||||
Reference in New Issue
Block a user