/usr/lib/python3/dist-packages/social/backends/ubuntu.py is in python3-social-auth 1:0.2.21+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | """
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']
|