/usr/share/pyshared/social_auth/backends/contrib/yammer_staging.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 | """
Yammer Staging OAuth2 support
"""
from social_auth.backends.contrib.yammer import YammerBackend, YammerOAuth2
YAMMER_STAGING_SERVER = 'staging.yammer.com'
YAMMER_STAGING_OAUTH_URL = 'https://www.%s/oauth2/' % YAMMER_STAGING_SERVER
YAMMER_STAGING_AUTH_URL = 'https://www.%s/dialog/oauth' % YAMMER_STAGING_SERVER
class YammerStagingBackend(YammerBackend):
name = 'yammer_staging'
class YammerStagingOAuth2(YammerOAuth2):
AUTH_BACKEND = YammerStagingBackend
AUTHORIZATION_URL = YAMMER_STAGING_AUTH_URL
ACCESS_TOKEN_URL = '%s%s' % (YAMMER_STAGING_OAUTH_URL, 'access_token')
REQUEST_TOKEN_URL = '%s%s' % (YAMMER_STAGING_OAUTH_URL, 'request_token')
SETTINGS_KEY_NAME = 'YAMMER_STAGING_CONSUMER_KEY'
SETTINGS_SECRET_NAME = 'YAMMER_STAGING_CONSUMER_SECRET'
BACKENDS = {
'yammer_staging': YammerStagingOAuth2
}
|