Rename flag
@@ -29,7 +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"`
- OverrideEmailVerify bool `long:"override-email-verified" description:"Enable override of email_verified field"`
+ InsecureSkipEmailVerified bool `long:"force-email-verified" description:"Enable override of email_verified field"`
}
func (flag *OIDCFlags) Name() string {
@@ -78,7 +78,7 @@ func (flag *OIDCFlags) Serialize(redirectURI string) ([]byte, error) {
InsecureSkipVerify: flag.InsecureSkipVerify,
RedirectURI: redirectURI,
InsecureEnableGroups: !flag.DisableGroups,
- InsecureSkipEmailVerified: flag.OverrideEmailVerify,
+ InsecureSkipEmailVerified: flag.InsecureSkipEmailVerified,
}
config.ClaimMapping.GroupsKey = flag.GroupsKey
