Both of the presumptive candidates in the November presidential election , Democrat hopeful Barack Obama and Republican Senator John McCain , are opposed to same-sex marriages but are against a constitutional ban on the issue .