A longtime independent, Vermont Sen. Bernie Sanders now contends he is a full-fledged Democrat who deserves to be the party’s presidential standard-bearer.

Yet Mr. Sanders has a long record of criticizing the Democratic Party and before the 2012 presidential election took the view that President Barack Obama should be challenged for the party nomination.