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
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
def login_github(request): o = OAuthManager() return HttpResponseRedirect(o.login_request())