omniauth-barong 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/barong/version.rb +1 -1
- data/lib/omniauth/strategies/barong.rb +8 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 935f1cf0ed8113de8c763e09e60fe67fb3391a718fe7d464b711a15a8778c623
|
4
|
+
data.tar.gz: a024fb0f010456275b09989d84832b1eb3f07c3ff6c2ce4bf7844c934032a596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da845b3c1f18433144d552c110cc64e26b725344680d761285c8c5e82ee4a7c21cf06960a95d730ca842a07dbce4038724d0f67567b7f00c83f173d33a06db9e
|
7
|
+
data.tar.gz: 738cc0a75ee803cbf62064e7069ddb0b7e7b97b38b704b320dbc7f314f63a47f36c2a0148516c516a6803b459a72b49dfcea44986687f5ef7c7cbe8ffe76a07e
|
@@ -13,9 +13,10 @@ module OmniAuth
|
|
13
13
|
option :domain, 'barong.io'
|
14
14
|
option :use_https, true
|
15
15
|
|
16
|
-
|
16
|
+
option :api_version, 'v1'
|
17
|
+
|
17
18
|
option :authorize_url, '/oauth/authorize'
|
18
|
-
option :raw_info_url
|
19
|
+
option :raw_info_url
|
19
20
|
|
20
21
|
args [
|
21
22
|
:client_id,
|
@@ -49,7 +50,11 @@ module OmniAuth
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def raw_info
|
52
|
-
@raw_info ||= access_token.get(
|
53
|
+
@raw_info ||= access_token.get(raw_info_url).parsed
|
54
|
+
end
|
55
|
+
|
56
|
+
def raw_info_url
|
57
|
+
options.raw_info_url || "/api/#{options.api_version}/account"
|
53
58
|
end
|
54
59
|
|
55
60
|
def callback_url
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-barong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Bellet
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|