From b8785dfc0460b7ce8cb38129abf59feb62b3d3bc Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 1 May 2015 12:58:50 -0400 Subject: [PATCH] Fix github login to use the github auth endpoint --- endpoints/oauthlogin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/oauthlogin.py b/endpoints/oauthlogin.py index 7f32ca552..577563233 100644 --- a/endpoints/oauthlogin.py +++ b/endpoints/oauthlogin.py @@ -126,7 +126,7 @@ def github_oauth_callback(): # Exchange the OAuth code. code = request.args.get('code') - token = google_login.exchange_code_for_token(app.config, client, code) + token = github_login.exchange_code_for_token(app.config, client, code) # Retrieve the user's information. user_data = get_user(github_login, token) @@ -214,7 +214,7 @@ def google_oauth_attach(): @require_session_login def github_oauth_attach(): code = request.args.get('code') - token = google_login.exchange_code_for_token(app.config, client, code) + token = github_login.exchange_code_for_token(app.config, client, code) user_data = get_user(github_login, token) if not user_data: return render_ologin_error('GitHub')