chore: add oidc redirect url to override access url (#21521)

If a deployment has 2 domains, overriding the oidc url allows the oidc
redirect to differ from the access_url

response to https://github.com/coder/coder/discussions/21500

**This config setting is hidden by default**
This commit is contained in:
Steven Masley
2026-02-20 09:11:01 -06:00
committed by GitHub
parent e5f64eb21d
commit efdaaa2c8f
8 changed files with 109 additions and 0 deletions
+13
View File
@@ -432,6 +432,19 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
"organization_assign_default": true,
"organization_field": "string",
"organization_mapping": {},
"redirect_url": {
"forceQuery": true,
"fragment": "string",
"host": "string",
"omitHost": true,
"opaque": "string",
"path": "string",
"rawFragment": "string",
"rawPath": "string",
"rawQuery": "string",
"scheme": "string",
"user": {}
},
"scopes": [
"string"
],
+40
View File
@@ -2933,6 +2933,19 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
"organization_assign_default": true,
"organization_field": "string",
"organization_mapping": {},
"redirect_url": {
"forceQuery": true,
"fragment": "string",
"host": "string",
"omitHost": true,
"opaque": "string",
"path": "string",
"rawFragment": "string",
"rawPath": "string",
"rawQuery": "string",
"scheme": "string",
"user": {}
},
"scopes": [
"string"
],
@@ -3488,6 +3501,19 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
"organization_assign_default": true,
"organization_field": "string",
"organization_mapping": {},
"redirect_url": {
"forceQuery": true,
"fragment": "string",
"host": "string",
"omitHost": true,
"opaque": "string",
"path": "string",
"rawFragment": "string",
"rawPath": "string",
"rawQuery": "string",
"scheme": "string",
"user": {}
},
"scopes": [
"string"
],
@@ -5731,6 +5757,19 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
"organization_assign_default": true,
"organization_field": "string",
"organization_mapping": {},
"redirect_url": {
"forceQuery": true,
"fragment": "string",
"host": "string",
"omitHost": true,
"opaque": "string",
"path": "string",
"rawFragment": "string",
"rawPath": "string",
"rawQuery": "string",
"scheme": "string",
"user": {}
},
"scopes": [
"string"
],
@@ -5772,6 +5811,7 @@ Only certain features set these fields: - FeatureManagedAgentLimit|
| `organization_assign_default` | boolean | false | | |
| `organization_field` | string | false | | |
| `organization_mapping` | object | false | | |
| `redirect_url` | [serpent.URL](#serpenturl) | false | | Redirect URL is optional, defaulting to 'ACCESS_URL'. Only useful in niche situations where the OIDC callback domain is different from the ACCESS_URL domain. |
| `scopes` | array of string | false | | |
| `sign_in_text` | string | false | | |
| `signups_disabled_text` | string | false | | |