예제 #1
0
파일: views.py 프로젝트: natea/ourmy
def authenticate_redirect(request, service):
    if request.user.is_authenticated():
        url = SinglyHelper.get_authorize_url(
            service,
            request.user.get_profile().access_token)
    else:
        url = SinglyHelper.get_authorize_url(service)
    return HttpResponseRedirect(url)
예제 #2
0
파일: views.py 프로젝트: ZoomTilt/ourmy
def authenticate_redirect(request, service):
    if request.user.is_authenticated():
        url = SinglyHelper.get_authorize_url(service, request.user.get_profile().access_token)
    else:
        url = SinglyHelper.get_authorize_url(service)
    return HttpResponseRedirect(url)
예제 #3
0
def authenticate_redirect(request, service):
    url = SinglyHelper.get_authorize_url(service)
    return HttpResponseRedirect(url)
예제 #4
0
def authenticate_redirect(request, service):
    url = SinglyHelper.get_authorize_url(service)
    return HttpResponseRedirect(url)