Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"""
Ubuntu One OpenId backend
"""
from social.backends.open_id import OpenIdAuth


class UbuntuOpenId(OpenIdAuth):
    name = 'ubuntu'
    URL = 'https://login.ubuntu.com'

    def get_user_id(self, details, response):
        """
        Return user unique id provided by service. For Ubuntu One
        the nickname should be original.
        """
        return details['nickname']