]> git.parisson.com Git - django-social-auth.git/commitdiff
change name to google-appengine to match some of the other backends.
authorUser <user@goku.localdomain>
Sun, 19 Feb 2012 20:51:34 +0000 (15:51 -0500)
committerUser <user@goku.localdomain>
Sun, 19 Feb 2012 20:51:34 +0000 (15:51 -0500)
make sure we don't get redirected from our auth_url.

social_auth/backends/gae.py

index 0d57a3791adc7927bfe008a293e07ee0a90fcd72..35cc0b55513a5b6940dc3f4b3b43ad2947d94655 100644 (file)
@@ -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')