omniauth-sage_impact 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ebd845e9290e0033b3325ee7a977ab90cb2443f
4
- data.tar.gz: 297c5b0e3154a6e9c95d12cc1abf254c00567cb5
3
+ metadata.gz: 341ca8920e449fe0618afd4760a1b5d223df4656
4
+ data.tar.gz: c1c36e2441dd8c0bbaf84c3e61f32b83bf113067
5
5
  SHA512:
6
- metadata.gz: 80d71b0fdd86aa5f724e53f369f375c4789941afd75d731ad8d09cae882adfbf4b8c2d2bb146fa015d10d2a65b5d6902de98d9ed76305819a3205be702647d17
7
- data.tar.gz: 6f86abc4f0089df8e3b61f2813f955e622f2930b1a82faa538f998b805a52205b919c804936e569edf46e6b0e18346a21a89830d2748ad0f849357790daed933
6
+ metadata.gz: 1e0503d3c9d1de519b1482fa4a8df1ee10987caa7ba9dccc3896e2df1c54e8fc8271001e428a5171eda1205b7d6bef8833f16816ce873695b27190a02db1c124
7
+ data.tar.gz: 23d1526e6dbde71a23f9d99e2ed6112cc8b776726b9944d66b3b3c16e2d6cfc038b51059fba66181a1338468e08dc99a304cef0add04fa4806118c22f5f985ed
data/README.md CHANGED
@@ -6,7 +6,7 @@ This gem contains the SageImpact strategy for OmniAuth 2.0.
6
6
 
7
7
  [https://app.sageaccountantscloud.com][SageImpact]
8
8
 
9
- [SageImpact]: https://app.sageaccountantscloud.com/)
9
+ [SageImpact]: https://app.sageaccountantscloud.com/
10
10
 
11
11
  ## Installing
12
12
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module SageImpact
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -1,18 +1,17 @@
1
1
  require 'omniauth/strategies/oauth2'
2
+ require 'omniauth-oauth'
3
+ require 'json'
2
4
 
3
5
  module OmniAuth
4
6
  module Strategies
5
7
  class SageImpact < OmniAuth::Strategies::OAuth2
6
8
  DEFAULT_RESPONSE_TYPE = 'code'
7
9
  DEFAULT_GRANT = 'authorization_code'
8
- INFO_URL = 'https://app.sageaccountantscloud.com/api/v1/me.json'.freeze
10
+ INFO_URL = 'https://app.sageaccountantscloud.com/api/v1/me'.freeze
9
11
 
10
12
  option :name, 'sage_impact'
11
13
 
12
- # The list of optional values that can be sent with authorize
13
- #
14
- # @note :ref is a referral code for the Referral Program.
15
- option :authorize_options, [:ref]
14
+ option :authorize_options, [:shortname]
16
15
  option :client_options, site: 'https://app.sageaccountantscloud.com',
17
16
  authorize_url: '/oauth/authorize',
18
17
  token_url: '/oauth/token'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-sage_impact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kimura