diff --git a/social/backends/yahoo.py b/social/backends/yahoo.py index 4f0873e52..c1590a527 100644 --- a/social/backends/yahoo.py +++ b/social/backends/yahoo.py @@ -41,7 +41,7 @@ def get_user_details(self, response): def user_data(self, access_token, *args, **kwargs): """Loads user data from service""" - url = 'http://social.yahooapis.com/v1/user/{0}/profile?format=json' + url = 'https://social.yahooapis.com/v1/user/{0}/profile?format=json' return self.get_json( url.format(self._get_guid(access_token)), auth=self.oauth_auth(access_token) @@ -53,6 +53,6 @@ def _get_guid(self, access_token): it's also returned during one of OAuth calls """ return self.get_json( - 'http://social.yahooapis.com/v1/me/guid?format=json', + 'https://social.yahooapis.com/v1/me/guid?format=json', auth=self.oauth_auth(access_token) )['guid']['value'] diff --git a/social/tests/backends/test_yahoo.py b/social/tests/backends/test_yahoo.py index 8259ba499..d3c87ae77 100644 --- a/social/tests/backends/test_yahoo.py +++ b/social/tests/backends/test_yahoo.py @@ -7,7 +7,7 @@ class YahooOAuth1Test(OAuth1Test): backend_path = 'social.backends.yahoo.YahooOAuth' - user_data_url = 'http://social.yahooapis.com/v1/user/a-guid/profile?' \ + user_data_url = 'https://social.yahooapis.com/v1/user/a-guid/profile?' \ 'format=json' expected_username = 'foobar' access_token_body = json.dumps({ @@ -21,7 +21,7 @@ class YahooOAuth1Test(OAuth1Test): }) guid_body = json.dumps({ 'guid': { - 'uri': 'http://social.yahooapis.com/v1/me/guid', + 'uri': 'https://social.yahooapis.com/v1/me/guid', 'value': 'a-guid' } }) @@ -37,7 +37,7 @@ class YahooOAuth1Test(OAuth1Test): 'height': 192 }, 'created': '2013-03-18T04:15:08Z', - 'uri': 'http://social.yahooapis.com/v1/user/a-guid/profile', + 'uri': 'https://social.yahooapis.com/v1/user/a-guid/profile', 'isConnected': False, 'profileUrl': 'http://profile.yahoo.com/a-guid', 'guid': 'a-guid', @@ -48,7 +48,7 @@ class YahooOAuth1Test(OAuth1Test): def test_login(self): HTTPretty.register_uri( HTTPretty.GET, - 'http://social.yahooapis.com/v1/me/guid?format=json', + 'https://social.yahooapis.com/v1/me/guid?format=json', status=200, body=self.guid_body )