]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/openidauth/authentication.py
Remove support for Google OpenID logins
[osqa.git] / forum_modules / openidauth / authentication.py
index dfd337f4c1056b6bf274f21b6343f909b1c96ce7..58759b53b23daee9bccf66fdd68c7a24d2d5c407 100644 (file)
@@ -1,22 +1,9 @@
 from consumer import OpenIdAbstractAuthConsumer
 from forum.authentication.base import ConsumerTemplateContext
 
 from consumer import OpenIdAbstractAuthConsumer
 from forum.authentication.base import ConsumerTemplateContext
 
-class GoogleAuthConsumer(OpenIdAbstractAuthConsumer):
-    def get_user_url(self, request):
-        return 'https://www.google.com/accounts/o8/id'
-
-class GoogleAuthContext(ConsumerTemplateContext):
-    mode = 'BIGICON'
-    type = 'DIRECT'
-    weight = 200
-    human_name = 'Google'
-    icon = '/media/images/openid/google.gif'
-
-
-
 class YahooAuthConsumer(OpenIdAbstractAuthConsumer):
     def get_user_url(self, request):
 class YahooAuthConsumer(OpenIdAbstractAuthConsumer):
     def get_user_url(self, request):
-        return 'http://yahoo.com/'
+        return 'http://me.yahoo.com/'
 
 class YahooAuthContext(ConsumerTemplateContext):
     mode = 'BIGICON'
 
 class YahooAuthContext(ConsumerTemplateContext):
     mode = 'BIGICON'
@@ -33,14 +20,14 @@ class AolAuthConsumer(OpenIdAbstractAuthConsumer):
         return 'http://openid.aol.com/' + uname
 
 class AolAuthContext(ConsumerTemplateContext):
         return 'http://openid.aol.com/' + uname
 
 class AolAuthContext(ConsumerTemplateContext):
-    mode = 'BIGICON'
+    mode = 'SMALLICON'
     type = 'SIMPLE_FORM'
     simple_form_context = {
         'your_what': 'AOL screen name'
     }
     type = 'SIMPLE_FORM'
     simple_form_context = {
         'your_what': 'AOL screen name'
     }
-    weight = 400
+    weight = 200
     human_name = 'AOL'
     human_name = 'AOL'
-    icon = '/media/images/openid/aol.gif'
+    icon = '/media/images/openid/aol.png'
 
 
 class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer):
 
 
 class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer):
@@ -56,14 +43,14 @@ class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer):
         return "http://%s.myopenid.com/" % blog_name
 
 class MyOpenIdAuthContext(ConsumerTemplateContext):
         return "http://%s.myopenid.com/" % blog_name
 
 class MyOpenIdAuthContext(ConsumerTemplateContext):
-    mode = 'SMALLICON'
+    mode = 'BIGICON'
     type = 'SIMPLE_FORM'
     simple_form_context = {
         'your_what': 'MyOpenID user name'
     }
     type = 'SIMPLE_FORM'
     simple_form_context = {
         'your_what': 'MyOpenID user name'
     }
-    weight = 200
+    weight = 400
     human_name = 'MyOpenID'
     human_name = 'MyOpenID'
-    icon = '/media/images/openid/myopenid.png'
+    icon = '/media/images/openid/myopenid_big.png'
 
 
 class FlickrAuthConsumer(OpenIdAbstractAuthConsumer):
 
 
 class FlickrAuthConsumer(OpenIdAbstractAuthConsumer):