From acd9aeca8e697b6d1f8f7ac29d7e3afac07b2e8a Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sat, 27 Mar 2010 16:06:23 -0400 Subject: removed authentication module to be replaced with a dedicated app, also switched to table layout for openid signin template temporarily so that it works on IE7 and maybe earlier --- forum_modules/openidauth/authentication.py | 196 ----------------------------- 1 file changed, 196 deletions(-) delete mode 100755 forum_modules/openidauth/authentication.py (limited to 'forum_modules/openidauth/authentication.py') diff --git a/forum_modules/openidauth/authentication.py b/forum_modules/openidauth/authentication.py deleted file mode 100755 index c04c44b9..00000000 --- a/forum_modules/openidauth/authentication.py +++ /dev/null @@ -1,196 +0,0 @@ -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): - return 'http://yahoo.com/' - -class YahooAuthContext(ConsumerTemplateContext): - mode = 'BIGICON' - type = 'DIRECT' - weight = 300 - human_name = 'Yahoo' - icon = '/media/images/openid/yahoo.gif' - - - -class AolAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - uname = request.POST['input_field'] - return 'http://openid.aol.com/' + uname - -class AolAuthContext(ConsumerTemplateContext): - mode = 'BIGICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'AOL screen name' - } - weight = 400 - human_name = 'AOL' - icon = '/media/images/openid/aol.gif' - - -class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://%s.myopenid.com/" % blog_name - -class MyOpenIdAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'MyOpenID user name' - } - weight = 200 - human_name = 'MyOpenID' - icon = '/media/images/openid/myopenid.ico' - - -class FlickrAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://flickr.com/%s/" % blog_name - -class FlickrAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'Flickr user name' - } - weight = 250 - human_name = 'Flickr' - icon = '/media/images/openid/flickr.ico' - - -class TechnoratiAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://technorati.com/people/technorati/%s/" % blog_name - -class TechnoratiAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'Technorati user name' - } - weight = 260 - human_name = 'Technorati' - icon = '/media/images/openid/technorati.ico' - - -class WordpressAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://%s.wordpress.com/" % blog_name - -class WordpressAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'Wordpress blog name' - } - weight = 270 - human_name = 'Wordpress' - icon = '/media/images/openid/wordpress.ico' - - -class BloggerAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://%s.blogspot.com/" % blog_name - -class BloggerAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'Blogger blog name' - } - weight = 300 - human_name = 'Blogger' - icon = '/media/images/openid/blogger.ico' - - -class LiveJournalAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://%s.livejournal.com/" % blog_name - -class LiveJournalAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'LiveJournal blog name' - } - weight = 310 - human_name = 'LiveJournal' - icon = '/media/images/openid/livejournal.ico' - - -class ClaimIdAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://claimid.com/%s" % blog_name - -class ClaimIdAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'ClaimID user name' - } - weight = 320 - human_name = 'ClaimID' - icon = '/media/images/openid/claimid.ico' - -class VidoopAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://%s.myvidoop.com/" % blog_name - -class VidoopAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'Vidoop user name' - } - weight = 330 - human_name = 'Vidoop' - icon = '/media/images/openid/vidoop.ico' - -class VerisignAuthConsumer(OpenIdAbstractAuthConsumer): - def get_user_url(self, request): - blog_name = request.POST['input_field'] - return "http://%s.pip.verisignlabs.com/" % blog_name - -class VerisignAuthContext(ConsumerTemplateContext): - mode = 'SMALLICON' - type = 'SIMPLE_FORM' - simple_form_context = { - 'your_what': 'Verisign user name' - } - weight = 340 - human_name = 'Verisign' - icon = '/media/images/openid/verisign.ico' - - -class OpenIdUrlAuthConsumer(OpenIdAbstractAuthConsumer): - pass - -class OpenIdUrlAuthContext(ConsumerTemplateContext): - mode = 'STACK_ITEM' - weight = 300 - human_name = 'OpenId url' - stack_item_template = 'modules/openidauth/openidurl.html' - icon = '/media/images/openid/openid-inputicon.gif' \ No newline at end of file -- cgit v1.2.3-1-g7c22