omniauth-dropbox2 1.0.4 → 1.0.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-dropbox2.rb +18 -0
- data/lib/omniauth-dropbox2/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 821a631a2868d8f0e5dba0969755c26bbbf66d0f
|
4
|
+
data.tar.gz: 30a7b894369c934f3e7a8b7bba575cb65fad5771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8aed9f7febab25f457864632374c88dce36b4de531ec6ea079159b78fd2511c6b97363995d0eb152b8d28a99468ed83b6c5ad1865e1dab78a4c5f1cc0c038b
|
7
|
+
data.tar.gz: a3717a2526e3fa5a135115fbaac1ad009aa7cb3bc0cab9b558c0de3e74ed92ff874adcd737241da859b4cc71b53f0f19cfcfc5105df1af3d14c738d59b9b2c96
|
data/lib/omniauth-dropbox2.rb
CHANGED
@@ -36,6 +36,24 @@ module OmniAuth
|
|
36
36
|
def raw_info
|
37
37
|
@raw_info ||= access_token.post('users/get_current_account', body: nil.to_json).parsed
|
38
38
|
end
|
39
|
+
|
40
|
+
def callback_url
|
41
|
+
# If redirect_uri is configured in token_params, use that
|
42
|
+
# value.
|
43
|
+
token_params.to_hash(symbolize_keys: true)[:redirect_uri] || super
|
44
|
+
end
|
45
|
+
|
46
|
+
def query_string
|
47
|
+
# This method is called by callback_url, only if redirect_uri
|
48
|
+
# is omitted in token_params.
|
49
|
+
if request.params['code']
|
50
|
+
# If this is a callback, ignore query parameters added by
|
51
|
+
# the provider.
|
52
|
+
''
|
53
|
+
else
|
54
|
+
super
|
55
|
+
end
|
56
|
+
end
|
39
57
|
end
|
40
58
|
end
|
41
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-dropbox2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Poli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.6.11
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: OmniAuth strategy for Dropbox using OAuth2
|