@@ -329,33 +329,33 @@ type TraceConfig struct {
329
329
330
330
type ExternalAuthConfig struct {
331
331
// Type is the type of external auth config.
332
- Type string `json:"type"`
333
- ClientID string `json:"client_id"`
332
+ Type string `json:"type" yaml:"type" `
333
+ ClientID string `json:"client_id" yaml:"client_id" `
334
334
ClientSecret string `json:"-" yaml:"client_secret"`
335
335
// ID is a unique identifier for the auth config.
336
336
// It defaults to `type` when not provided.
337
- ID string `json:"id"`
338
- AuthURL string `json:"auth_url"`
339
- TokenURL string `json:"token_url"`
340
- ValidateURL string `json:"validate_url"`
341
- AppInstallURL string `json:"app_install_url"`
342
- AppInstallationsURL string `json:"app_installations_url"`
343
- NoRefresh bool `json:"no_refresh"`
344
- Scopes []string `json:"scopes"`
345
- ExtraTokenKeys []string `json:"extra_token_keys"`
346
- DeviceFlow bool `json:"device_flow"`
347
- DeviceCodeURL string `json:"device_code_url"`
337
+ ID string `json:"id" yaml:"id" `
338
+ AuthURL string `json:"auth_url" yaml:"auth_url" `
339
+ TokenURL string `json:"token_url" yaml:"token_url" `
340
+ ValidateURL string `json:"validate_url" yaml:"validate_url" `
341
+ AppInstallURL string `json:"app_install_url" yaml:"app_install_url" `
342
+ AppInstallationsURL string `json:"app_installations_url" yaml:"app_installations_url" `
343
+ NoRefresh bool `json:"no_refresh" yaml:"no_refresh" `
344
+ Scopes []string `json:"scopes" yaml:"scopes" `
345
+ ExtraTokenKeys []string `json:"extra_token_keys" yaml:"extra_token_keys" `
346
+ DeviceFlow bool `json:"device_flow" yaml:"device_flow" `
347
+ DeviceCodeURL string `json:"device_code_url" yaml:"device_code_url" `
348
348
// Regex allows API requesters to match an auth config by
349
349
// a string (e.g. coder.com) instead of by it's type.
350
350
//
351
351
// Git clone makes use of this by parsing the URL from:
352
352
// 'Username for "https://github.com":'
353
353
// And sending it to the Coder server to match against the Regex.
354
- Regex string `json:"regex"`
354
+ Regex string `json:"regex" yaml:"regex" `
355
355
// DisplayName is shown in the UI to identify the auth config.
356
- DisplayName string `json:"display_name"`
356
+ DisplayName string `json:"display_name" yaml:"display_name" `
357
357
// DisplayIcon is a URL to an icon to display in the UI.
358
- DisplayIcon string `json:"display_icon"`
358
+ DisplayIcon string `json:"display_icon" yaml:"display_icon" `
359
359
}
360
360
361
361
type ProvisionerConfig struct {
@@ -1788,7 +1788,7 @@ Write out the current server config as YAML to stdout.`,
1788
1788
Description : "External Authentication providers." ,
1789
1789
// We need extra scrutiny to ensure this works, is documented, and
1790
1790
// tested before enabling.
1791
- // YAML: "gitAuthProviders ",
1791
+ YAML : "externalAuthProviders " ,
1792
1792
Value : & c .ExternalAuthConfigs ,
1793
1793
Hidden : true ,
1794
1794
},
0 commit comments