Both the North Carolina Republican Party and the Virginia Republican Party are considering adopting state rules that require presidential primary candidates to take a loyalty oath to support the party’s eventual 2016 presidential nominee. See this story. It is likely that courts would uphold the ability of parties to keep people who refuse to sign off their primary ballots.
The Texas Democratic Party had a similar oath for presidential primary candidates in 2008, and Dennis Kucinich refused to sign it. He sued to get on the Texas Democratic presidential primary ballot, but the U.S. District Court and the 5th circuit upheld the authority of the party to keep Kucinich off the presidential primary ballot. Kucinich asked the U.S. Supreme Court to hear the case, but it refused. Thanks to several people for the link.
UPDATE: see this Washington Post story.