// Convert_v1_OpenIDClaims_To_config_OpenIDClaims is an autogenerated conversion function.
354283
func Convert_v1_OpenIDClaims_To_config_OpenIDClaims(in *v1.OpenIDClaims, out *config.OpenIDClaims, s conversion.Scope) error {
	return autoConvert_v1_OpenIDClaims_To_config_OpenIDClaims(in, out, s)
}
1054865
func Convert_apps_DeploymentConfigList_To_v1_DeploymentConfigList(in *apps.DeploymentConfigList, out *v1.DeploymentConfigList, s conversion.Scope) error {
	return autoConvert_apps_DeploymentConfigList_To_v1_DeploymentConfigList(in, out, s)
}
955065
func Convert_config_LDAPSyncConfig_To_v1_LDAPSyncConfig(in *config.LDAPSyncConfig, out *v1.LDAPSyncConfig, s conversion.Scope) error {
	return autoConvert_config_LDAPSyncConfig_To_v1_LDAPSyncConfig(in, out, s)
}
1052157
func Convert_config_MasterAuthConfig_To_v1_MasterAuthConfig(in *config.MasterAuthConfig, out *v1.MasterAuthConfig, s conversion.Scope) error {
	return autoConvert_config_MasterAuthConfig_To_v1_MasterAuthConfig(in, out, s)
}
899130
func Convert_v1_LDAPPasswordIdentityProvider_To_config_LDAPPasswordIdentityProvider(in *v1.LDAPPasswordIdentityProvider, out *config.LDAPPasswordIdentityProvider, s conversion.Scope) error {
	return autoConvert_v1_LDAPPasswordIdentityProvider_To_config_LDAPPasswordIdentityProvider(in, out, s)
}
392210
func Convert_core_ClientIPConfig_To_v1_ClientIPConfig(in *core.ClientIPConfig, out *v1.ClientIPConfig, s conversion.Scope) error {
	return autoConvert_core_ClientIPConfig_To_v1_ClientIPConfig(in, out, s)
}
537324
func (c *GithubConnectorV3) MapClaims(claims GithubClaims) ([]string, []string) {
	var logins, kubeGroups []string
	for _, mapping := range c.GetTeamsToLogins() {
		teams, ok := claims.OrganizationToTeams[mapping.Organization]
		if !ok {
			// the user does not belong to this organization
			continue
		}
		for _, team := range teams {
			// see if the user belongs to this team
			if team == mapping.Team {
				logins = append(logins, mapping.Logins...)
				kubeGroups = append(kubeGroups, mapping.KubeGroups...)
			}
		}
	}
	return utils.Deduplicate(logins), utils.Deduplicate(kubeGroups)
}
561865
func Convert_v1_ProviderConfiguration_To_config_ProviderConfiguration(in *ProviderConfiguration, out *config.ProviderConfiguration, s conversion.Scope) error {
	return autoConvert_v1_ProviderConfiguration_To_config_ProviderConfiguration(in, out, s)
}
355915
func Convert_v1_RegistryLocation_To_config_RegistryLocation(in *v1.RegistryLocation, out *config.RegistryLocation, s conversion.Scope) error {
	return autoConvert_v1_RegistryLocation_To_config_RegistryLocation(in, out, s)
}
351979
func Convert_config_GitHubIdentityProvider_To_v1_GitHubIdentityProvider(in *config.GitHubIdentityProvider, out *v1.GitHubIdentityProvider, s conversion.Scope) error {
	return autoConvert_config_GitHubIdentityProvider_To_v1_GitHubIdentityProvider(in, out, s)
}
157660
func Convert_config_OAuthTemplates_To_v1_OAuthTemplates(in *config.OAuthTemplates, out *v1.OAuthTemplates, s conversion.Scope) error {
	return autoConvert_config_OAuthTemplates_To_v1_OAuthTemplates(in, out, s)
}
523885
func newClaimResolver(claim string, client *http.Client, config *oidc.Config) *claimResolver {
	return &claimResolver{claim: claim, client: client, config: config, verifierPerIssuer: map[string]*asyncIDTokenVerifier{}}
}
527782
func (g *Generic) PrincipalIDFromClaims(claims gojwt.MapClaims) (string, error) {
	if id, ok := claims[g.APIKey].(string); ok {
		return id, nil
	}
	return "", fmt.Errorf("no claim for %s", g.APIKey)
}
1159722
func Convert_v1_IdentityProvider_To_config_IdentityProvider(in *legacyconfigv1.IdentityProvider, out *internal.IdentityProvider, s conversion.Scope) error {
	if err := autoConvert_v1_IdentityProvider_To_config_IdentityProvider(in, out, s); err != nil {
		return err
	}

	if len(in.Provider.Raw) == 0 && (in.Provider.Object == nil) {
		out.Provider = nil
	} else {
		if err := convert_runtime_RawExtension_To_runtime_Object(&in.Provider, &out.Provider, s); err != nil {
			return nil
		}
	}

	return nil
}
1184193
func Convert_config_EncryptionConfiguration_To_v1_EncryptionConfiguration(in *config.EncryptionConfiguration, out *EncryptionConfiguration, s conversion.Scope) error {
	return autoConvert_config_EncryptionConfiguration_To_v1_EncryptionConfiguration(in, out, s)
}
310923
func Convert_config_PolicyConfig_To_v1_PolicyConfig(in *config.PolicyConfig, out *v1.PolicyConfig, s conversion.Scope) error {
	return autoConvert_config_PolicyConfig_To_v1_PolicyConfig(in, out, s)
}
1085969
func Convert_config_LDAPPasswordIdentityProvider_To_v1_LDAPPasswordIdentityProvider(in *config.LDAPPasswordIdentityProvider, out *v1.LDAPPasswordIdentityProvider, s conversion.Scope) error {
	return autoConvert_config_LDAPPasswordIdentityProvider_To_v1_LDAPPasswordIdentityProvider(in, out, s)
}