@@ -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 {
@@ -1583,6 +1584,16 @@ func (c *DeploymentValues) Options() serpent.OptionSet {
1583
1584
YAML : "deviceFlow" ,
1584
1585
Default : "false" ,
1585
1586
},
1587
+ {
1588
+ Name : "OAuth2 GitHub Default Provider Enable" ,
1589
+ Description : "Enable the default GitHub OAuth2 provider managed by Coder." ,
1590
+ Flag : "oauth2-github-default-provider-enable" ,
1591
+ Env : "CODER_OAUTH2_GITHUB_DEFAULT_PROVIDER_ENABLE" ,
1592
+ Value : & c .OAuth2 .Github .DefaultProviderEnable ,
1593
+ Group : & deploymentGroupOAuth2GitHub ,
1594
+ YAML : "defaultProviderEnable" ,
1595
+ Default : "true" ,
1596
+ },
1586
1597
{
1587
1598
Name : "OAuth2 GitHub Allowed Orgs" ,
1588
1599
Description : "Organizations the user must be a member of to Login with GitHub." ,
0 commit comments