@@ -503,14 +503,15 @@ type OAuth2Config struct {
503
503
}
504
504
505
505
type OAuth2GithubConfig struct {
506
- ClientID serpent.String `json:"client_id" typescript:",notnull"`
507
- ClientSecret serpent.String `json:"client_secret" typescript:",notnull"`
508
- DeviceFlow serpent.Bool `json:"device_flow" typescript:",notnull"`
509
- AllowedOrgs serpent.StringArray `json:"allowed_orgs" typescript:",notnull"`
510
- AllowedTeams serpent.StringArray `json:"allowed_teams" typescript:",notnull"`
511
- AllowSignups serpent.Bool `json:"allow_signups" typescript:",notnull"`
512
- AllowEveryone serpent.Bool `json:"allow_everyone" typescript:",notnull"`
513
- EnterpriseBaseURL serpent.String `json:"enterprise_base_url" typescript:",notnull"`
506
+ ClientID serpent.String `json:"client_id" typescript:",notnull"`
507
+ ClientSecret serpent.String `json:"client_secret" typescript:",notnull"`
508
+ DeviceFlow serpent.Bool `json:"device_flow" typescript:",notnull"`
509
+ DefaultProviderEnable serpent.Bool `json:"default_provider_enable" typescript:",notnull"`
510
+ AllowedOrgs serpent.StringArray `json:"allowed_orgs" typescript:",notnull"`
511
+ AllowedTeams serpent.StringArray `json:"allowed_teams" typescript:",notnull"`
512
+ AllowSignups serpent.Bool `json:"allow_signups" typescript:",notnull"`
513
+ AllowEveryone serpent.Bool `json:"allow_everyone" typescript:",notnull"`
514
+ EnterpriseBaseURL serpent.String `json:"enterprise_base_url" typescript:",notnull"`
514
515
}
515
516
516
517
type OIDCConfig struct {
@@ -1593,6 +1594,16 @@ func (c *DeploymentValues) Options() serpent.OptionSet {
1593
1594
YAML : "deviceFlow" ,
1594
1595
Default : "false" ,
1595
1596
},
1597
+ {
1598
+ Name : "OAuth2 GitHub Default Provider Enable" ,
1599
+ Description : "Enable the default GitHub OAuth2 provider managed by Coder." ,
1600
+ Flag : "oauth2-github-default-provider-enable" ,
1601
+ Env : "CODER_OAUTH2_GITHUB_DEFAULT_PROVIDER_ENABLE" ,
1602
+ Value : & c .OAuth2 .Github .DefaultProviderEnable ,
1603
+ Group : & deploymentGroupOAuth2GitHub ,
1604
+ YAML : "defaultProviderEnable" ,
1605
+ Default : "true" ,
1606
+ },
1596
1607
{
1597
1608
Name : "OAuth2 GitHub Allowed Orgs" ,
1598
1609
Description : "Organizations the user must be a member of to Login with GitHub." ,
0 commit comments