mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
Merge branch 'main' of github.com:/coder/coder into dk/prebuilds
This commit is contained in:
@ -509,6 +509,7 @@ type OAuth2Config struct {
|
||||
type OAuth2GithubConfig struct {
|
||||
ClientID serpent.String `json:"client_id" typescript:",notnull"`
|
||||
ClientSecret serpent.String `json:"client_secret" typescript:",notnull"`
|
||||
DeviceFlow serpent.Bool `json:"device_flow" typescript:",notnull"`
|
||||
AllowedOrgs serpent.StringArray `json:"allowed_orgs" typescript:",notnull"`
|
||||
AllowedTeams serpent.StringArray `json:"allowed_teams" typescript:",notnull"`
|
||||
AllowSignups serpent.Bool `json:"allow_signups" typescript:",notnull"`
|
||||
@ -1585,6 +1586,16 @@ func (c *DeploymentValues) Options() serpent.OptionSet {
|
||||
Annotations: serpent.Annotations{}.Mark(annotationSecretKey, "true"),
|
||||
Group: &deploymentGroupOAuth2GitHub,
|
||||
},
|
||||
{
|
||||
Name: "OAuth2 GitHub Device Flow",
|
||||
Description: "Enable device flow for Login with GitHub.",
|
||||
Flag: "oauth2-github-device-flow",
|
||||
Env: "CODER_OAUTH2_GITHUB_DEVICE_FLOW",
|
||||
Value: &c.OAuth2.Github.DeviceFlow,
|
||||
Group: &deploymentGroupOAuth2GitHub,
|
||||
YAML: "deviceFlow",
|
||||
Default: "false",
|
||||
},
|
||||
{
|
||||
Name: "OAuth2 GitHub Allowed Orgs",
|
||||
Description: "Organizations the user must be a member of to Login with GitHub.",
|
||||
|
Reference in New Issue
Block a user