omniauth-barong 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: c02c2b256349e2bbb171f53df69c515da44ca312870bc0916e2f78934aebd479
4
- data.tar.gz: f24c5f98ed88d501f5c886535f662f978dbeb9dfbc50319e4219cd8a01150680
3
+ metadata.gz: 935f1cf0ed8113de8c763e09e60fe67fb3391a718fe7d464b711a15a8778c623
4
+ data.tar.gz: a024fb0f010456275b09989d84832b1eb3f07c3ff6c2ce4bf7844c934032a596
5
5
  SHA512:
6
- metadata.gz: 05c9880578ab631b5f1a12e1bb6e7f4d8b0b91aeddbe62ec7b0d9b665c4f83035ea6043179ffc9fff35d3dcd582c713e77b4e86b5dfce13a3545c43949296408
7
- data.tar.gz: 1fd40b267d5c4e10d1798afc56f11d542c6375dcb0cfd677f1998a4cf67840f517e5686f91ff08e233683617bc65e18df75a39d2a48a67492210efe1bec604cb
6
+ metadata.gz: da845b3c1f18433144d552c110cc64e26b725344680d761285c8c5e82ee4a7c21cf06960a95d730ca842a07dbce4038724d0f67567b7f00c83f173d33a06db9e
7
+ data.tar.gz: 738cc0a75ee803cbf62064e7069ddb0b7e7b97b38b704b320dbc7f314f63a47f36c2a0148516c516a6803b459a72b49dfcea44986687f5ef7c7cbe8ffe76a07e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Barong
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
@@ -13,9 +13,10 @@ module OmniAuth
13
13
  option :domain, 'barong.io'
14
14
  option :use_https, true
15
15
 
16
- # This option is temporary dynamic due to barong development.
16
+ option :api_version, 'v1'
17
+
17
18
  option :authorize_url, '/oauth/authorize'
18
- option :raw_info_url, '/api/account'
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(options.raw_info_url).parsed
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.2
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-02-15 00:00:00.000000000 Z
12
+ date: 2018-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2