omniauth-quickbooks-oauth2 0.1.0.alpha → 0.2.0.alpha

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
- SHA1:
3
- metadata.gz: a102d5bb79949e3b8a6904ffdfa4546696e0609c
4
- data.tar.gz: 4a129d7ce33b4bcbc810b4b3839b8fb70b594c28
2
+ SHA256:
3
+ metadata.gz: 7c6800c1f8c69a83bc8f474df409afa9015f95b762b3313638d0d848c46881cf
4
+ data.tar.gz: af0afee0609189bb060b3e3783c22b8451cf28a66e88e2c29c45ce35d9b0db90
5
5
  SHA512:
6
- metadata.gz: 8c9301e2b126abde32b20bca556ca687881a6f3e40126f264d579f2a926c1f1799c60c0d616f54f4e9a6b7a3fe05625629d961840bfaf75be9f137eb033451e8
7
- data.tar.gz: d214f87a0d96f29e49be0800162f38d8972622bd4a387ef93d1756662da4544188f73e9074bd44f031147e8b7697a80e017dbd3a9eeaff82c3b9affa79c53f1f
6
+ metadata.gz: e84b81c7734f4efe3a271192721286f97312b4b1fd70b235cc6069096af2e402b2242ab703f91c4149e7235c2646bdb256632d6c356e39aa839901cf44469ce8
7
+ data.tar.gz: a41a9c0d01f20d98bd176c9a90edd0738af61697dcc7bc9f8581ba4fb892c7168646bf269aac8e55f9a296c1f7bf609fc268ed5aff381f50a29af66f45615b6a
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # omniauth-quickbooks-oauth2
1
+ # [omniauth-quickbooks-oauth2](https://rubygems.org/gems/omniauth-quickbooks-oauth2)
2
2
 
3
3
  This gem provides an Omniauth strategy to connect with Quickbooks (via Intuit) using OAuth2.
4
4
 
@@ -40,6 +40,8 @@ end
40
40
 
41
41
  **ALSO NOTE: If the `sandbox` parameter is not explicitly set to `false`, then the strategy will default to using the sandbox endpoints for Intuit's API.**
42
42
 
43
+ **ALSO NOTE: If you request the `profile`, `address`, `email`, and/or `phone` scopes, you must also specify the `openid` scope or else Intuit will not allow the OAuth2 dance to happen.**
44
+
43
45
  ## Contributing
44
46
 
45
47
  Bug reports and pull requests are welcome on GitHub at https://github.com/abeland/omniauth-quickbooks-oauth2.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module QuickbooksOauth2
3
- VERSION = '0.1.0.alpha'.freeze
3
+ VERSION = '0.2.0.alpha'.freeze
4
4
  end
5
5
  end
@@ -25,7 +25,9 @@ module OmniAuth
25
25
  end
26
26
 
27
27
  def raw_info
28
- @raw_info ||= JSON.parse(access_token.get("https://#{accounts_domain}/v1/openid_connect/userinfo").body)
28
+ @raw_info ||= options.scope.split(/\s+/).include?('openid') ?
29
+ JSON.parse(access_token.get("https://#{accounts_domain}/v1/openid_connect/userinfo").body) :
30
+ {}
29
31
  end
30
32
 
31
33
  def callback_url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-quickbooks-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha
4
+ version: 0.2.0.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abe Land
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: 1.3.1
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.6.11
121
+ rubygems_version: 2.7.6
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: OAuth2 Omniauth strategy for Quickbooks.