omniauth-quickbooks-oauth2 0.1.0.alpha → 0.2.0.alpha
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 +5 -5
- data/README.md +3 -1
- data/lib/omniauth-quickbooks-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/quickbooks_oauth2.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 7c6800c1f8c69a83bc8f474df409afa9015f95b762b3313638d0d848c46881cf
|
|
4
|
+
data.tar.gz: af0afee0609189bb060b3e3783c22b8451cf28a66e88e2c29c45ce35d9b0db90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
@@ -25,7 +25,9 @@ module OmniAuth
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def raw_info
|
|
28
|
-
@raw_info ||=
|
|
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.
|
|
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-
|
|
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
|
|
121
|
+
rubygems_version: 2.7.6
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 4
|
|
124
124
|
summary: OAuth2 Omniauth strategy for Quickbooks.
|