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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcd4c323a593ed19bf1b07090b02707195e34f5b
4
- data.tar.gz: cf27405720eafa81aafd3dd2caa5a089e5673041
3
+ metadata.gz: 821a631a2868d8f0e5dba0969755c26bbbf66d0f
4
+ data.tar.gz: 30a7b894369c934f3e7a8b7bba575cb65fad5771
5
5
  SHA512:
6
- metadata.gz: 2b6e62180b87ce02d7a286fc0d06f68f30017d28b717a704bf91e0a5160c2759ab3dedb5ec2fd40f34e5c8dea3bc5c5f8981489f764efca4e35f6909f451a3db
7
- data.tar.gz: 47113ca51f85f6009f58a2f7cddb090fff812804c6edc9491ddcf0162442654ac829097ec88c48a25da35459b9d1ac18d231211e2f9e0ca89e2cd0870318e840
6
+ metadata.gz: ed8aed9f7febab25f457864632374c88dce36b4de531ec6ea079159b78fd2511c6b97363995d0eb152b8d28a99468ed83b6c5ad1865e1dab78a4c5f1cc0c038b
7
+ data.tar.gz: a3717a2526e3fa5a135115fbaac1ad009aa7cb3bc0cab9b558c0de3e74ed92ff874adcd737241da859b4cc71b53f0f19cfcfc5105df1af3d14c738d59b9b2c96
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Box2
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  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
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: 2016-12-24 00:00:00.000000000 Z
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.5.1
63
+ rubygems_version: 2.6.11
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: OmniAuth strategy for Dropbox using OAuth2