omniauth-identitas 0.2.1 → 0.2.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: 97fc0f4ae201eedc27529ac9aba1f4a571fbc09e
4
- data.tar.gz: 99d91f73e554c323a8d0841774607e4c7d4b977f
3
+ metadata.gz: a328d52a6c47b0f83b406ea217956cd583264eed
4
+ data.tar.gz: '032339ffa9a708603de561d5398a8969d5b4402b'
5
5
  SHA512:
6
- metadata.gz: 60ef44e07df795f118e27b91ea821e801bb6097088f98e664c5db15a629ab9910df9a876170b1afe75290e0e1323075559725d2ce9d1c8650db66eed3f19dce4
7
- data.tar.gz: df904bb8723a4f66f0b044a683f5d6a00411df1e052b3a36b5138a28c781ec4bf35c415c8c0cbd749a12ec2c6a3a96792456fad3e366a703e7b811a2108b18b7
6
+ metadata.gz: 7c51c6571c4c063c4886527d39a2f58256d31b94a66dfe6e71743a7f9ed703e7ae371715636f189a386d0ad37bde551168c35bfb642e3fcc30f0cf1148d325ce
7
+ data.tar.gz: 8b7663e3c31ea8d99968f2497cbc29909e9367a9b35b5bd6359d84d81afc70af65304b40261029c756082f0ae0d37d2323d96ae8d8fed34034c993c9360af83f
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Identitas
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
@@ -23,9 +23,11 @@ module OmniAuth
23
23
  end
24
24
 
25
25
  extra do
26
- {
27
- m: request.params["m"]
28
- }
26
+ hash = {}
27
+ hash['raw_info'] = raw_info unless skip_info?
28
+ hash['m'] = request.params["m"]
29
+ hash['application_info'] = application_info
30
+ hash
29
31
  end
30
32
 
31
33
  def raw_info
@@ -47,6 +49,10 @@ module OmniAuth
47
49
  options.authorize_params[:m] = request.params["m"]
48
50
  end
49
51
 
52
+ def application_info
53
+ @application_info ||= access_token.get('/v1/app/info').parsed
54
+ end
55
+
50
56
  end
51
57
  end
52
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-identitas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yunanhelmy