First let me tell that I'm not a Sasuke's fanboy, and gaining Rinnegan is sth stupid and cliche.
Ok, let get down to business:
As far as I remember, to gain Rinnegan, one should both have senju and uchiha DNA and also be on the verge of death, for example in the case of Madara.
NOTE...