Skip to content

Commit a1de109

Browse files
ffedoroffnijel
authored andcommitted
Update vk backend to the 5.131
Update vk backend to the latest api. More info here: https://vk.com/dev/versions
1 parent 10722f1 commit a1de109

File tree

1 file changed

+2
-2
lines changed
  • social_core/backends

1 file changed

+2
-2
lines changed

social_core/backends/vk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class VKOAuth2(BaseOAuth2):
7878
"""VKOAuth2 authentication backend"""
7979
name = 'vk-oauth2'
8080
ID_KEY = 'id'
81-
AUTHORIZATION_URL = 'http://oauth.vk.com/authorize'
81+
AUTHORIZATION_URL = 'https://oauth.vk.com/authorize'
8282
ACCESS_TOKEN_URL = 'https://oauth.vk.com/access_token'
8383
ACCESS_TOKEN_METHOD = 'POST'
8484
EXTRA_DATA = [
@@ -187,7 +187,7 @@ def vk_api(backend, method, data):
187187

188188
data['method'] = method
189189
data['format'] = 'json'
190-
url = 'http://api.vk.com/api.php'
190+
url = 'https://api.vk.com/api.php'
191191
param_list = sorted(list(item + '=' + data[item] for item in data))
192192
data['sig'] = md5(
193193
(''.join(param_list) + secret).encode('utf-8')

0 commit comments

Comments
 (0)