Backport to 6.7.x branch
@@ -6,7 +6,7 @@ import (
"github.com/concourse/dex/connector/oidc"
"github.com/concourse/flag"
- multierror "github.com/hashicorp/go-multierror"
+ "github.com/hashicorp/go-multierror"
)
func init() {
@@ -29,6 +29,7 @@ type OIDCFlags struct {
CACerts []flag.File `long:"ca-cert" description:"CA Certificate"`
InsecureSkipVerify bool `long:"skip-ssl-validation" description:"Skip SSL validation"`
DisableGroups bool `long:"disable-groups" description:"Disable OIDC groups claims"`
+ InsecureSkipEmailVerified bool `long:"force-email-verified" description:"Enable override of email_verified field"`
}
func (flag *OIDCFlags) Name() string {
@@ -77,6 +78,7 @@ func (flag *OIDCFlags) Serialize(redirectURI string) ([]byte, error) {
InsecureSkipVerify: flag.InsecureSkipVerify,
RedirectURI: redirectURI,
InsecureEnableGroups: !flag.DisableGroups,
+ InsecureSkipEmailVerified: flag.InsecureSkipEmailVerified,
}
config.ClaimMapping.GroupsKey = flag.GroupsKey
