[Python-modules-commits] [python-social-auth] 90/322: Add support for Launchpad OpenId

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:12:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit e9ac5dc3f266d1108deb5d84f89ca3014a3e7d6e
Author: Ian Wienand <iwienand at redhat.com>
Date:   Mon Feb 2 14:32:41 2015 +1100

    Add support for Launchpad OpenId
    
    Add support for Launchpad OpenId
---
 README.rst                   |  2 ++
 docs/backends/launchpad.rst  | 11 +++++++++++
 social/backends/launchpad.py | 11 +++++++++++
 3 files changed, 24 insertions(+)

diff --git a/README.rst b/README.rst
index e4a0488..bd097d0 100644
--- a/README.rst
+++ b/README.rst
@@ -79,6 +79,7 @@ or current ones extended):
     * Jawbone_ OAuth2 https://jawbone.com/up/developer/authentication
     * Kakao_ OAuth2 https://developer.kakao.com
     * `Khan Academy`_ OAuth1
+    * Launchpad_ OpenId
     * Linkedin_ OAuth1
     * Live_ OAuth2
     * Livejournal_ OpenId
@@ -245,6 +246,7 @@ check `django-social-auth LICENSE`_ for details:
 .. _Github: https://github.com
 .. _Google: http://google.com
 .. _Instagram: https://instagram.com
+.. _LaunchPad: https://help.launchpad.net/YourAccount/OpenID
 .. _Linkedin: https://www.linkedin.com
 .. _Live: https://live.com
 .. _Livejournal: http://livejournal.com
diff --git a/docs/backends/launchpad.rst b/docs/backends/launchpad.rst
new file mode 100644
index 0000000..7f12f35
--- /dev/null
+++ b/docs/backends/launchpad.rst
@@ -0,0 +1,11 @@
+Launchpad
+=========
+
+`Ubuntu Launchpad <https://launchpad.net/>`_ OpenId doesn't require
+major settings beside being defined on ``AUTHENTICATION_BACKENDS```::
+
+    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
+        ...
+        'social.backends.launchpad.LaunchpadOpenId',
+        ...
+    )
diff --git a/social/backends/launchpad.py b/social/backends/launchpad.py
new file mode 100644
index 0000000..2f4a513
--- /dev/null
+++ b/social/backends/launchpad.py
@@ -0,0 +1,11 @@
+"""
+Launchpad OpenId backend
+"""
+
+from social.backends.open_id import OpenIdAuth
+
+
+class LaunchpadOpenId(OpenIdAuth):
+    name = 'launchpad'
+    URL = 'https://login.launchpad.net'
+    USERNAME_KEY = 'nickname'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list