def openid_login(request):
    if "openid_identifier" in request.GET:
        user_url = request.GET.get("openid_identifier")
        request.session["openid_provider"] = user_url
        return begin(request, user_url=user_url)
    else:
        request.session["openid_provider"] = "Openid"
        return begin(request)
Exemple #2
0
def openid_login(request):
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        request.session['openid_provider'] = user_url
        return begin(request, user_url=user_url)
    else:
        request.session['openid_provider'] = 'Openid'
        return begin(request)
Exemple #3
0
def openid_login(request):
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        request.session['openid_provider'] = user_url
        return begin(request, user_url = user_url)
    else:
        request.session['openid_provider'] = 'Openid'
        return begin(request)
Exemple #4
0
def openid_login(request):
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        if user_url.startswith('g:'): # google g: shortcut
            user_url='http://www.google.com/profiles/'+user_url[2:]
        request.session['openid_provider'] = user_url
        return begin(request, user_url = user_url)
    else:
        request.session['openid_provider'] = 'Openid'
        return begin(request)
Exemple #5
0
def openid_login(request):
    if request.method == 'POST':
        return login_page(request)

    set_next( request )
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        request.session['openid_provider'] = user_url
        return begin(request, user_url = user_url)
    else:
        request.session['openid_provider'] = 'Openid'
        return begin(request)
Exemple #6
0
def openid_login(request):
    if request.method == 'POST':
        return login_page(request)

    set_next(request)
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        request.session['openid_provider'] = user_url
        return begin(request, user_url=user_url)
    else:
        request.session['openid_provider'] = 'Openid'
        return begin(request)
Exemple #7
0
def openid_login(request):
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        request.session['openid_provider'] = user_url
        return begin(request, user_url = user_url)
    else:
        if 'google.com' in request.POST.get('openid_url', ''):
            request.session['openid_provider'] = 'Google'
            return begin(request, user_url='https://www.google.com/accounts/o8/id')
        else:
            request.session['openid_provider'] = 'Openid'
            return begin(request)
Exemple #8
0
def openid_login(request):
    if 'openid_identifier' in request.GET:
        user_url = request.GET.get('openid_identifier')
        request.session['openid_provider'] = user_url
        return begin(request, user_url = user_url)
    else:
        if 'google.com' in request.POST.get('openid_url', ''):
            request.session['openid_provider'] = 'Google'
            return begin(request, user_url='https://www.google.com/accounts/o8/id')
        elif 'yahoo.com' in request.POST.get('openid_url', ''):
            request.session['openid_provider'] = 'Yahoo'
        else:
            request.session['openid_provider'] = 'Openid'
        return begin(request)
Exemple #9
0
def yahoo_login(request):
    request.session['openid_provider'] = 'Yahoo'
    return begin(request, user_url='http://yahoo.com/')
Exemple #10
0
def gmail_login(request):
    request.session['openid_provider'] = 'Google'
    return begin(request, user_url='https://www.google.com/accounts/o8/id')
Exemple #11
0
def yahoo_login(request):
    request.session["openid_provider"] = "Yahoo"
    return begin(request, user_url="http://yahoo.com/")
Exemple #12
0
def gmail_login(request):
    request.session["openid_provider"] = "Google"
    return begin(request, user_url="https://www.google.com/accounts/o8/id")
Exemple #13
0
def udacity_login(request):
    request.session['openid_provider'] = 'Udacity'
    return begin(request, user_url='https://www.udacity.com/openid/server')
Exemple #14
0
def google_login(request):
    set_next( request )
    request.session['openid_provider'] = 'Google'
    return begin(request, user_url='https://www.google.com/accounts/o8/id')
def openid_login(request):
    request.session['openid_provider'] = 'Openid'
    return begin(request)
Exemple #16
0
def gmail_login(request):
    request.session['openid_provider'] = 'google'
    return begin(request, user_url='https://www.google.com/accounts/o8/id')
Exemple #17
0
def yahoo_login(request):
    request.session['openid_provider'] = 'Yahoo'
    return begin(request, user_url='https://me.yahoo.com/')
Exemple #18
0
def openid_login(request):
    request.session["openid_provider"] = "Openid"
    return begin(request)