omniauth-sage_impact 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/omniauth/sage_impact/version.rb +1 -1
- data/lib/omniauth/strategies/sage_impact.rb +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 341ca8920e449fe0618afd4760a1b5d223df4656
|
4
|
+
data.tar.gz: c1c36e2441dd8c0bbaf84c3e61f32b83bf113067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e0503d3c9d1de519b1482fa4a8df1ee10987caa7ba9dccc3896e2df1c54e8fc8271001e428a5171eda1205b7d6bef8833f16816ce873695b27190a02db1c124
|
7
|
+
data.tar.gz: 23d1526e6dbde71a23f9d99e2ed6112cc8b776726b9944d66b3b3c16e2d6cfc038b51059fba66181a1338468e08dc99a304cef0add04fa4806118c22f5f985ed
|
data/README.md
CHANGED
@@ -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
|
10
|
+
INFO_URL = 'https://app.sageaccountantscloud.com/api/v1/me'.freeze
|
9
11
|
|
10
12
|
option :name, 'sage_impact'
|
11
13
|
|
12
|
-
|
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'
|