# Path: social/backends/google.py
# class GoogleOAuth(BaseGoogleAuth, BaseOAuth1):
#     """Google OAuth authorization mechanism"""
#     name = 'google-oauth'
#     AUTHORIZATION_URL = 'https://www.google.com/accounts/OAuthAuthorizeToken'
#     REQUEST_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetRequestToken'
#     ACCESS_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetAccessToken'
#     DEFAULT_SCOPE = ['https://www.googleapis.com/auth/userinfo#email']
# 
#     def user_data(self, access_token, *args, **kwargs):
#         """Return user data from Google API"""
#         return self.get_querystring(
#             'https://www.googleapis.com/userinfo/email',
#             auth=self.oauth_auth(access_token)
#         )
# 
#     def get_key_and_secret(self):
#         """Return Google OAuth Consumer Key and Consumer Secret pair, uses
#         anonymous by default, beware that this marks the application as not
#         registered and a security badge is displayed on authorization page.
#         http://code.google.com/apis/accounts/docs/OAuth_ref.html#SigningOAuth
#         """
#         key_secret = super(GoogleOAuth, self).get_key_and_secret()
#         if key_secret == (None, None):
#             key_secret = ('anonymous', 'anonymous')
#         return key_secret


from social.backends.google import GoogleOAuth
"""
Orkut OAuth support.

This contribution adds support for Orkut OAuth service. The scope is
limited to http://orkut.gmodules.com/social/ by default, but can be
extended with ORKUT_EXTRA_SCOPE on project settings. Also name, display
name and emails are the default requested user data, but extra values
can be specified by defining ORKUT_EXTRA_DATA setting.

OAuth settings ORKUT_CONSUMER_KEY and ORKUT_CONSUMER_SECRET are needed
to enable this service support.
"""



# Path: social/backends/google.py
# class GoogleOAuth(BaseGoogleAuth, BaseOAuth1):
#     """Google OAuth authorization mechanism"""
#     name = 'google-oauth'
#     AUTHORIZATION_URL = 'https://www.google.com/accounts/OAuthAuthorizeToken'
#     REQUEST_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetRequestToken'
#     ACCESS_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetAccessToken'
#     DEFAULT_SCOPE = ['https://www.googleapis.com/auth/userinfo#email']
# 
#     def user_data(self, access_token, *args, **kwargs):
#         """Return user data from Google API"""
#         return self.get_querystring(
#             'https://www.googleapis.com/userinfo/email',
#             auth=self.oauth_auth(access_token)
#         )
# 
#     def get_key_and_secret(self):
#         """Return Google OAuth Consumer Key and Consumer Secret pair, uses
#         anonymous by default, beware that this marks the application as not
#         registered and a security badge is displayed on authorization page.
#         http://code.google.com/apis/accounts/docs/OAuth_ref.html#SigningOAuth
#         """
#         key_secret = super(GoogleOAuth, self).get_key_and_secret()
#         if key_secret == (None, None):
#             key_secret = ('anonymous', 'anonymous')
#         return key_secret


# Path: social/backends/orkut.py
from social.backends.google import GoogleOAuth

"""
Orkut OAuth support.

This contribution adds support for Orkut OAuth service. The scope is
limited to http://orkut.gmodules.com/social/ by default, but can be
extended with ORKUT_EXTRA_SCOPE on project settings. Also name, display
name and emails are the default requested user data, but extra values
can be specified by defining ORKUT_EXTRA_DATA setting.

OAuth settings ORKUT_CONSUMER_KEY and ORKUT_CONSUMER_SECRET are needed
to enable this service support.
"""



class OrkutOAuth(GoogleOAuth):