func (s *IdentityService) GetOIDCConnector(id string, withSecrets bool) (*services.OIDCConnector, error) {
	out, err := s.backend.GetVal(connectorsPath, id)
	if err != nil {
		if trace.IsNotFound(err) {
			return nil, trace.NotFound("OpenID connector '%v' is not configured", id)
		}
		return nil, trace.Wrap(err)
	}
	var data *services.OIDCConnector
	err = json.Unmarshal(out, &data)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	if !withSecrets {
		data.ClientSecret = ""
	}
	return data, nil
}
// GetOIDCConnector returns OIDC connector data, , withSecrets adds or removes client secret from return results
GetOIDCConnector returns OIDC connector data, , withSecrets adds or removes client secret from return results
// GetOIDCConnector returns OIDC connector data withSecrets adds or removes client secret from return results
func (s *IdentityService) GetOIDCConnector(id string, withSecrets bool) (*services.OIDCConnector, error) {
	out, err := s.backend.GetVal(connectorsPath, id)
	if err != nil {
		if trace.IsNotFound(err) {
			return nil, trace.NotFound("OpenID connector '%v' is not configured", id)
		}
		return nil, trace.Wrap(err)
	}
	var data *services.OIDCConnector
	err = json.Unmarshal(out, &data)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	if !withSecrets {
		data.ClientSecret = ""
	}
	return data, nil
}
func ( s * IdentityService ) GetOIDCConnector ( id string , withSecrets bool ) ( * services . OIDCConnector , error ) { out , err := s . backend . GetVal ( connectorsPath , id ) if err != nil { if trace . IsNotFound ( err ) { return nil , trace . NotFound ( " " , id ) } return nil , trace . Wrap ( err ) } var data * services . OIDCConnector err = json . Unmarshal ( out , & data ) if err != nil { return nil , trace . Wrap ( err ) } if ! withSecrets { data . ClientSecret = " " } return data , nil }
GetOIDCConnector returns OIDC connector data, , withSecrets adds or removes client secret from return results
GetOIDCConnector returns OIDC connector data withSecrets adds or removes client secret from return results