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
@@ -88,11 +88,16 @@ export interface AuditLogsRequest extends Pagination {
|
||||
readonly q?: string
|
||||
}
|
||||
|
||||
// From codersdk/users.go
|
||||
export interface AuthMethod {
|
||||
readonly enabled: boolean
|
||||
}
|
||||
|
||||
// From codersdk/users.go
|
||||
export interface AuthMethods {
|
||||
readonly password: boolean
|
||||
readonly github: boolean
|
||||
readonly oidc: boolean
|
||||
readonly password: AuthMethod
|
||||
readonly github: AuthMethod
|
||||
readonly oidc: OIDCAuthMethod
|
||||
}
|
||||
|
||||
// From codersdk/authorization.go
|
||||
@@ -454,6 +459,12 @@ export interface OAuth2GithubConfig {
|
||||
readonly enterprise_base_url: DeploymentConfigField<string>
|
||||
}
|
||||
|
||||
// From codersdk/users.go
|
||||
export interface OIDCAuthMethod extends AuthMethod {
|
||||
readonly signInText: string
|
||||
readonly iconUrl: string
|
||||
}
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface OIDCConfig {
|
||||
readonly allow_signups: DeploymentConfigField<boolean>
|
||||
@@ -464,6 +475,8 @@ export interface OIDCConfig {
|
||||
readonly scopes: DeploymentConfigField<string[]>
|
||||
readonly ignore_email_verified: DeploymentConfigField<boolean>
|
||||
readonly username_field: DeploymentConfigField<string>
|
||||
readonly sign_in_text: DeploymentConfigField<string>
|
||||
readonly icon_url: DeploymentConfigField<string>
|
||||
}
|
||||
|
||||
// From codersdk/organizations.go
|
||||
|
||||
Reference in New Issue
Block a user