Obama is entirely secular, but he plays both Christian and Muslim at times for political reasons.
i think his allegiance is definitely with Islam