From: User Date: Sun, 19 Feb 2012 20:51:34 +0000 (-0500) Subject: change name to google-appengine to match some of the other backends. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6305cf3c99b2aa66676c21ff27910e929813c17a;p=django-social-auth.git change name to google-appengine to match some of the other backends. make sure we don't get redirected from our auth_url. --- 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')