/usr/lib/python2.7/dist-packages/social/backends/suse.py is in python-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 17 | """
Open Suse OpenId backend, docs at:
http://psa.matiasaguirre.net/docs/backends/suse.html
"""
from social.backends.open_id import OpenIdAuth
class OpenSUSEOpenId(OpenIdAuth):
name = 'opensuse'
URL = 'https://www.opensuse.org/openid/user/'
def get_user_id(self, details, response):
"""
Return user unique id provided by service. For openSUSE
the nickname is original.
"""
return details['nickname']
|