Commit a7ec53f5 authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

add launchpad and ubuntuSSO openid login.

parent ccbadbde
...@@ -186,3 +186,25 @@ class OpenIdUrlAuthContext(ConsumerTemplateContext): ...@@ -186,3 +186,25 @@ class OpenIdUrlAuthContext(ConsumerTemplateContext):
human_name = 'OpenId url' human_name = 'OpenId url'
stack_item_template = 'modules/openidauth/openidurl.html' stack_item_template = 'modules/openidauth/openidurl.html'
icon = '/media/images/openid/openid-inputicon.gif' icon = '/media/images/openid/openid-inputicon.gif'
class LaunchpadAuthConsumer(OpenIdAbstractAuthConsumer):
def get_user_url(self, request):
return 'https://login.launchpad.net'
class LaunchpadAuthContext(ConsumerTemplateContext):
mode = 'BIGICON'
type = 'DIRECT'
weight = 200
human_name = 'Launchpad OpenID'
icon = '/media/images/openid/launchpad.gif'
class UbuntuSSOAuthConsumer(OpenIdAbstractAuthConsumer):
def get_user_url(self, request):
return 'https://login.ubuntu.com'
class UbuntuSSOAuthContext(ConsumerTemplateContext):
mode = 'BIGICON'
type = 'DIRECT'
weight = 200
human_name = 'Ubuntu Single Sign On'
icon = '/media/images/openid/ubuntusso.gif'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment