예제 #1
0
def oauth(request):
    o = OAuthManager()
    c = DevRankModel()
    o.callback_response(request.get_full_path())
    me = json.loads(o.getUser())['login']
    c.oauth(me)
    response = HttpResponseRedirect('/search?m=' + me)
    response.set_cookie('own', me)
    return response
예제 #2
0
파일: views.py 프로젝트: jongyeol/devrank
def oauth(request):
    o = OAuthManager()
    c = DevRankModel()
    o.callback_response(request.get_full_path())
    me = json.loads(o.getUser())['login']
    c.oauth(me)
    response = HttpResponseRedirect('/search?m='+me)
    response.set_cookie('own', me)
    return response
예제 #3
0
def login_github(request):
    o = OAuthManager()
    return HttpResponseRedirect(o.login_request())
예제 #4
0
파일: views.py 프로젝트: jongyeol/devrank
def login_github(request):
    o = OAuthManager()
    return HttpResponseRedirect(o.login_request())