From 6305cf3c99b2aa66676c21ff27910e929813c17a Mon Sep 17 00:00:00 2001 From: User Date: Sun, 19 Feb 2012 15:51:34 -0500 Subject: [PATCH] change name to google-appengine to match some of the other backends. make sure we don't get redirected from our auth_url. --- social_auth/backends/gae.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/social_auth/backends/gae.py b/social_auth/backends/gae.py index 0d57a37..35cc0b5 100644 --- a/social_auth/backends/gae.py +++ b/social_auth/backends/gae.py @@ -11,7 +11,7 @@ from google.appengine.api import users class GAEBackend(SocialAuthBackend): """BrowserID authentication backend""" - name = 'GAE' + name = 'google-appengine' def get_user_id(self, details, response): """Use BrowserID email as ID""" @@ -39,10 +39,11 @@ class GAEAuth(BaseAuth): AUTH_BACKEND = GAEBackend def auth_url(self): - return users.create_login_url('/complete/gae') + return users.create_login_url('/complete/gae/') def auth_complete(self, *args, **kwargs): """Completes login process, must return user instance""" + if not users.get_current_user(): raise ValueError('Authentication error') -- 2.39.5