mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add custom error message on signups disabled page (#11959)
This commit is contained in:
@@ -179,6 +179,7 @@ func createOIDCConfig(ctx context.Context, vals *codersdk.DeploymentValues) (*co
|
||||
UserRoleMapping: vals.OIDC.UserRoleMapping.Value,
|
||||
UserRolesDefault: vals.OIDC.UserRolesDefault.GetSlice(),
|
||||
SignInText: vals.OIDC.SignInText.String(),
|
||||
SignupsDisabledText: vals.OIDC.SignupsDisabledText.String(),
|
||||
IconURL: vals.OIDC.IconURL.String(),
|
||||
IgnoreEmailVerified: vals.OIDC.IgnoreEmailVerified.Value(),
|
||||
}, nil
|
||||
|
||||
+4
@@ -426,6 +426,10 @@ OIDC OPTIONS:
|
||||
--oidc-icon-url url, $CODER_OIDC_ICON_URL
|
||||
URL pointing to the icon to use on the OpenID Connect login button.
|
||||
|
||||
--oidc-signups-disabled-text string, $CODER_OIDC_SIGNUPS_DISABLED_TEXT
|
||||
The custom text to show on the error page informing about disabled
|
||||
OIDC signups. Markdown format is supported.
|
||||
|
||||
PROVISIONING OPTIONS:
|
||||
Tune the behavior of the provisioner, which is responsible for creating,
|
||||
updating, and deleting workspace resources.
|
||||
|
||||
+4
@@ -348,6 +348,10 @@ oidc:
|
||||
# URL pointing to the icon to use on the OpenID Connect login button.
|
||||
# (default: <unset>, type: url)
|
||||
iconURL:
|
||||
# The custom text to show on the error page informing about disabled OIDC signups.
|
||||
# Markdown format is supported.
|
||||
# (default: <unset>, type: string)
|
||||
signupsDisabledText: ""
|
||||
# Telemetry is critical to our ability to improve Coder. We strip all personal
|
||||
# information before sending data to our servers. Please only disable telemetry
|
||||
# when required by your organization's security policy.
|
||||
|
||||
Reference in New Issue
Block a user