omniauth-vkontakte 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/vkontakte.rb +6 -0
- data/lib/omniauth-vkontakte/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c199e114dec8304976f1b104aea9196126c233
|
4
|
+
data.tar.gz: a05592290150b668bb891f053f99bfaed86d7842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490eaf357f29db3839296fa7bf45e0de041dc3aeb834fbee6ae1ab090c692b7e3ee4e96ad5c59a8149028d019a036b48faf5cb91a5abdc4fea4a58494186e735
|
7
|
+
data.tar.gz: a3c0f003d55223cd6e2d77eb261f7b5988109e83f10076ba65dffa55db56daa5321706d4881f4d5b2d2ac13b0ef6b47d8be055a3b877a629ace7d867222f5dee
|
@@ -29,6 +29,8 @@ module OmniAuth
|
|
29
29
|
|
30
30
|
option :authorize_options, [:scope, :display]
|
31
31
|
|
32
|
+
option :redirect_url, nil
|
33
|
+
|
32
34
|
uid { raw_info['id'].to_s }
|
33
35
|
|
34
36
|
# https://github.com/intridea/omniauth/wiki/Auth-Hash-Schema
|
@@ -94,6 +96,10 @@ module OmniAuth
|
|
94
96
|
|
95
97
|
private
|
96
98
|
|
99
|
+
def callback_url
|
100
|
+
options.redirect_url || super
|
101
|
+
end
|
102
|
+
|
97
103
|
def info_options
|
98
104
|
# http://vk.com/dev/fields
|
99
105
|
fields = %w[nickname screen_name sex city country online bdate photo_50 photo_100 photo_200 photo_200_orig photo_400_orig]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-vkontakte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Maminov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|