def googleauth(request): """ Redirect after google auth """ social_auth = SocialAuth(request=request) social_auth.google_step2() return HttpResponseRedirect(reverse('home'))
def start_twauth(request): """ The view function that initiates the entire handshake. """ social_auth = SocialAuth(request=request) redirect_url = social_auth.twitter_step1() return HttpResponseRedirect(redirect_url)
def fbauth(request): """ Redirect function after facebook authentication """ social_auth = SocialAuth(request=request) social_auth.facebook_step2() return HttpResponseRedirect(reverse('home'))
def start_fbauth(request): """ Starting point for facebook authentication """ social_auth = SocialAuth(request=request) redirect_url = social_auth.facebook_step1() return HttpResponseRedirect(redirect_url)
def start_googleauth(request): """ Starting point for google authentication uses oauth2.0 """ social_auth = SocialAuth(request=request) redirect_url = social_auth.google_step1() return HttpResponseRedirect(redirect_url)
def twauth(request): """ Redirect function after twitter login """ social_auth = SocialAuth(request=request) social_auth.twitter_step2() return HttpResponseRedirect(reverse('home'))