@@ -14,6 +14,7 @@ import (
14
14
"strings"
15
15
"time"
16
16
17
+ "github.com/google/uuid"
17
18
"golang.org/x/mod/semver"
18
19
"golang.org/x/xerrors"
19
20
@@ -512,29 +513,32 @@ type OIDCConfig struct {
512
513
ClientID serpent.String `json:"client_id" typescript:",notnull"`
513
514
ClientSecret serpent.String `json:"client_secret" typescript:",notnull"`
514
515
// ClientKeyFile & ClientCertFile are used in place of ClientSecret for PKI auth.
515
- ClientKeyFile serpent.String `json:"client_key_file" typescript:",notnull"`
516
- ClientCertFile serpent.String `json:"client_cert_file" typescript:",notnull"`
517
- EmailDomain serpent.StringArray `json:"email_domain" typescript:",notnull"`
518
- IssuerURL serpent.String `json:"issuer_url" typescript:",notnull"`
519
- Scopes serpent.StringArray `json:"scopes" typescript:",notnull"`
520
- IgnoreEmailVerified serpent.Bool `json:"ignore_email_verified" typescript:",notnull"`
521
- UsernameField serpent.String `json:"username_field" typescript:",notnull"`
522
- NameField serpent.String `json:"name_field" typescript:",notnull"`
523
- EmailField serpent.String `json:"email_field" typescript:",notnull"`
524
- AuthURLParams serpent.Struct [map [string ]string ]`json:"auth_url_params" typescript:",notnull"`
525
- IgnoreUserInfo serpent.Bool `json:"ignore_user_info" typescript:",notnull"`
526
- GroupAutoCreate serpent.Bool `json:"group_auto_create" typescript:",notnull"`
527
- GroupRegexFilter serpent.Regexp `json:"group_regex_filter" typescript:",notnull"`
528
- GroupAllowList serpent.StringArray `json:"group_allow_list" typescript:",notnull"`
529
- GroupField serpent.String `json:"groups_field" typescript:",notnull"`
530
- GroupMapping serpent.Struct [map [string ]string ]`json:"group_mapping" typescript:",notnull"`
531
- UserRoleField serpent.String `json:"user_role_field" typescript:",notnull"`
532
- UserRoleMapping serpent.Struct [map [string ][]string ]`json:"user_role_mapping" typescript:",notnull"`
533
- UserRolesDefault serpent.StringArray `json:"user_roles_default" typescript:",notnull"`
534
- SignInText serpent.String `json:"sign_in_text" typescript:",notnull"`
535
- IconURL serpent.URL `json:"icon_url" typescript:",notnull"`
536
- SignupsDisabledText serpent.String `json:"signups_disabled_text" typescript:",notnull"`
537
- SkipIssuerChecks serpent.Bool `json:"skip_issuer_checks" typescript:",notnull"`
516
+ ClientKeyFile serpent.String `json:"client_key_file" typescript:",notnull"`
517
+ ClientCertFile serpent.String `json:"client_cert_file" typescript:",notnull"`
518
+ EmailDomain serpent.StringArray `json:"email_domain" typescript:",notnull"`
519
+ IssuerURL serpent.String `json:"issuer_url" typescript:",notnull"`
520
+ Scopes serpent.StringArray `json:"scopes" typescript:",notnull"`
521
+ IgnoreEmailVerified serpent.Bool `json:"ignore_email_verified" typescript:",notnull"`
522
+ UsernameField serpent.String `json:"username_field" typescript:",notnull"`
523
+ NameField serpent.String `json:"name_field" typescript:",notnull"`
524
+ EmailField serpent.String `json:"email_field" typescript:",notnull"`
525
+ AuthURLParams serpent.Struct [map [string ]string ]`json:"auth_url_params" typescript:",notnull"`
526
+ IgnoreUserInfo serpent.Bool `json:"ignore_user_info" typescript:",notnull"`
527
+ OrganizationField serpent.String `json:"organization_field" typescript:",notnull"`
528
+ OrganizationMapping serpent.Struct [map [string ][]uuid.UUID ]`json:"organization_mapping" typescript:",notnull"`
529
+ OrganizationAssignDefault serpent.Bool `json:"organization_assign_default" typescript:",notnull"`
530
+ GroupAutoCreate serpent.Bool `json:"group_auto_create" typescript:",notnull"`
531
+ GroupRegexFilter serpent.Regexp `json:"group_regex_filter" typescript:",notnull"`
532
+ GroupAllowList serpent.StringArray `json:"group_allow_list" typescript:",notnull"`
533
+ GroupField serpent.String `json:"groups_field" typescript:",notnull"`
534
+ GroupMapping serpent.Struct [map [string ]string ]`json:"group_mapping" typescript:",notnull"`
535
+ UserRoleField serpent.String `json:"user_role_field" typescript:",notnull"`
536
+ UserRoleMapping serpent.Struct [map [string ][]string ]`json:"user_role_mapping" typescript:",notnull"`
537
+ UserRolesDefault serpent.StringArray `json:"user_roles_default" typescript:",notnull"`
538
+ SignInText serpent.String `json:"sign_in_text" typescript:",notnull"`
539
+ IconURL serpent.URL `json:"icon_url" typescript:",notnull"`
540
+ SignupsDisabledText serpent.String `json:"signups_disabled_text" typescript:",notnull"`
541
+ SkipIssuerChecks serpent.Bool `json:"skip_issuer_checks" typescript:",notnull"`
538
542
}
539
543
540
544
type TelemetryConfig struct {