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:
Generated
+2
-1
@@ -442,7 +442,8 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
"default_token_lifetime": 0,
|
||||
"disable_expiry_refresh": true,
|
||||
"max_admin_token_lifetime": 0,
|
||||
"max_token_lifetime": 0
|
||||
"max_token_lifetime": 0,
|
||||
"refresh_default_duration": 0
|
||||
},
|
||||
"ssh_keygen_algorithm": "string",
|
||||
"strict_transport_security": 0,
|
||||
|
||||
Generated
+14
-10
@@ -2466,7 +2466,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"default_token_lifetime": 0,
|
||||
"disable_expiry_refresh": true,
|
||||
"max_admin_token_lifetime": 0,
|
||||
"max_token_lifetime": 0
|
||||
"max_token_lifetime": 0,
|
||||
"refresh_default_duration": 0
|
||||
},
|
||||
"ssh_keygen_algorithm": "string",
|
||||
"strict_transport_security": 0,
|
||||
@@ -2953,7 +2954,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"default_token_lifetime": 0,
|
||||
"disable_expiry_refresh": true,
|
||||
"max_admin_token_lifetime": 0,
|
||||
"max_token_lifetime": 0
|
||||
"max_token_lifetime": 0,
|
||||
"refresh_default_duration": 0
|
||||
},
|
||||
"ssh_keygen_algorithm": "string",
|
||||
"strict_transport_security": 0,
|
||||
@@ -6867,19 +6869,21 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
|
||||
"default_token_lifetime": 0,
|
||||
"disable_expiry_refresh": true,
|
||||
"max_admin_token_lifetime": 0,
|
||||
"max_token_lifetime": 0
|
||||
"max_token_lifetime": 0,
|
||||
"refresh_default_duration": 0
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|----------------------------|---------|----------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `default_duration` | integer | false | | Default duration is only for browser, workspace app and oauth sessions. |
|
||||
| `default_token_lifetime` | integer | false | | |
|
||||
| `disable_expiry_refresh` | boolean | false | | Disable expiry refresh will disable automatically refreshing api keys when they are used from the api. This means the api key lifetime at creation is the lifetime of the api key. |
|
||||
| `max_admin_token_lifetime` | integer | false | | |
|
||||
| `max_token_lifetime` | integer | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|----------------------------|---------|----------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `default_duration` | integer | false | | Default duration is only for browser, workspace app and oauth sessions. |
|
||||
| `default_token_lifetime` | integer | false | | |
|
||||
| `disable_expiry_refresh` | boolean | false | | Disable expiry refresh will disable automatically refreshing api keys when they are used from the api. This means the api key lifetime at creation is the lifetime of the api key. |
|
||||
| `max_admin_token_lifetime` | integer | false | | |
|
||||
| `max_token_lifetime` | integer | false | | |
|
||||
| `refresh_default_duration` | integer | false | | Refresh default duration is the default lifetime for OAuth2 refresh tokens. This should generally be longer than access token lifetimes to allow refreshing after access token expiry. |
|
||||
|
||||
## codersdk.SlimRole
|
||||
|
||||
|
||||
Reference in New Issue
Block a user