omniauth-odnoklassniki 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 709ad727f5fa0033dc51441a309e0ed10fc8711f
|
4
|
+
data.tar.gz: 80c4f38fd045e680dcf8a1a21bbbb3dc548cdd71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f041c9e2da38102d4d3b384ef06ae1c20dc48448f4f7577b9587975010c00d464cd8c968c6ecc11ed66baed71f56162612fb9f65ac58adbae37e2cb40511cef3
|
7
|
+
data.tar.gz: e1b859e75f05565372f673e8c1704de91f1eed7c260ae25d254a3c3d1149e8d512a0672fa49fc0c37d4e27a266e8e51b1c7242e9b042a6ba16d1a4526f06100d
|
@@ -7,8 +7,8 @@ module OmniAuth
|
|
7
7
|
option :name, 'odnoklassniki'
|
8
8
|
|
9
9
|
option :client_options, {
|
10
|
-
:site => '
|
11
|
-
:token_url => 'https://api.
|
10
|
+
:site => 'https://connect.ok.ru',
|
11
|
+
:token_url => 'https://api.ok.ru/oauth/token.do',
|
12
12
|
:authorize_url => '/oauth/authorize'
|
13
13
|
}
|
14
14
|
|
@@ -30,7 +30,7 @@ module OmniAuth
|
|
30
30
|
:last_name => raw_info['last_name'],
|
31
31
|
:image => raw_info['pic_1'],
|
32
32
|
:urls => {
|
33
|
-
'Odnoklassniki' => "
|
33
|
+
'Odnoklassniki' => "https://ok.ru/profile/#{uid}",
|
34
34
|
}
|
35
35
|
}
|
36
36
|
end
|
@@ -40,11 +40,7 @@ module OmniAuth
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def callback_url
|
43
|
-
|
44
|
-
options.authorize_options.callback_url
|
45
|
-
else
|
46
|
-
super
|
47
|
-
end
|
43
|
+
options.redirect_url || (full_host + script_name + callback_path)
|
48
44
|
end
|
49
45
|
|
50
46
|
def build_access_token
|
@@ -68,7 +64,7 @@ module OmniAuth
|
|
68
64
|
}
|
69
65
|
params['fields'] = options[:info_fields] if options.key?(:info_fields)
|
70
66
|
params['sig'] = calculate_signature(params)
|
71
|
-
result = access_token.get('http://api.
|
67
|
+
result = access_token.get('http://api.ok.ru/fb.do', :params => params).parsed
|
72
68
|
raise CallbackError.new(nil, :invalid_response) if result['error_code'] || result['error_msg']
|
73
69
|
result
|
74
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-odnoklassniki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Logvinov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -72,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project: omniauth-odnoklassniki
|
75
|
-
rubygems_version: 2.
|
75
|
+
rubygems_version: 2.6.8
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: OmniAuth strategy for Odnoklassniki.ru
|
79
79
|
test_files: []
|
80
|
-
has_rdoc:
|