/usr/share/pyshared/social_auth/backends/yahoo.py is in python-django-social-auth 0.7.23-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 18 19 20 21 22 23 24 25 26 27 28 29 | """
Yahoo OpenID support
No extra configurations are needed to make this work.
"""
from social_auth.backends import OpenIDBackend, OpenIdAuth
YAHOO_OPENID_URL = 'http://me.yahoo.com'
class YahooBackend(OpenIDBackend):
"""Yahoo OpenID authentication backend"""
name = 'yahoo'
class YahooAuth(OpenIdAuth):
"""Yahoo OpenID authentication"""
AUTH_BACKEND = YahooBackend
def openid_url(self):
"""Return Yahoo OpenID service url"""
return YAHOO_OPENID_URL
# Backend definition
BACKENDS = {
'yahoo': YahooAuth,
}
|