mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Allow hiding password auth, changing OpenID Connect text and OpenID Connect icon (#5101)
* Allow hiding password entry, changing OpenID Connect text and OpenID Connect icon * Docs * Cleaning * Fix Prettier and Go test and TS compile error * Fix LoginPage test * Prettier * Fix storybook * Add query param to un-hide password auth * Cleaning * Hide password by default when OIDC enabled * Ran prettier, updated goldenfiles and ran "make gen" * Fixed and added LoginPage test * Ran prettier * PR Feedback and split up SignInForm.tsx * Updated golden files * Fix auto-genned-files * make gen -B * Revert provisioner files? * Fix lint error --------- Co-authored-by: Kyle Carberry <kyle@coder.com>
This commit is contained in:
co-authored by
Kyle Carberry
parent
480f3b6e43
commit
69fce0488e
Generated
+31
-3
@@ -5444,17 +5444,25 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.AuthMethod": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.AuthMethods": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"github": {
|
||||
"type": "boolean"
|
||||
"$ref": "#/definitions/codersdk.AuthMethod"
|
||||
},
|
||||
"oidc": {
|
||||
"type": "boolean"
|
||||
"$ref": "#/definitions/codersdk.OIDCAuthMethod"
|
||||
},
|
||||
"password": {
|
||||
"type": "boolean"
|
||||
"$ref": "#/definitions/codersdk.AuthMethod"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -6626,6 +6634,20 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.OIDCAuthMethod": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"iconUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"signInText": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.OIDCConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -6641,6 +6663,9 @@ const docTemplate = `{
|
||||
"email_domain": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_string"
|
||||
},
|
||||
"icon_url": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-string"
|
||||
},
|
||||
"ignore_email_verified": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-bool"
|
||||
},
|
||||
@@ -6650,6 +6675,9 @@ const docTemplate = `{
|
||||
"scopes": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_string"
|
||||
},
|
||||
"sign_in_text": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-string"
|
||||
},
|
||||
"username_field": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-string"
|
||||
}
|
||||
|
||||
Generated
+31
-3
@@ -4825,17 +4825,25 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.AuthMethod": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.AuthMethods": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"github": {
|
||||
"type": "boolean"
|
||||
"$ref": "#/definitions/codersdk.AuthMethod"
|
||||
},
|
||||
"oidc": {
|
||||
"type": "boolean"
|
||||
"$ref": "#/definitions/codersdk.OIDCAuthMethod"
|
||||
},
|
||||
"password": {
|
||||
"type": "boolean"
|
||||
"$ref": "#/definitions/codersdk.AuthMethod"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -5927,6 +5935,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.OIDCAuthMethod": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"iconUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"signInText": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.OIDCConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5942,6 +5964,9 @@
|
||||
"email_domain": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_string"
|
||||
},
|
||||
"icon_url": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-string"
|
||||
},
|
||||
"ignore_email_verified": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-bool"
|
||||
},
|
||||
@@ -5951,6 +5976,9 @@
|
||||
"scopes": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-array_string"
|
||||
},
|
||||
"sign_in_text": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-string"
|
||||
},
|
||||
"username_field": {
|
||||
"$ref": "#/definitions/codersdk.DeploymentConfigField-string"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user