omniauth-vatsim 0.1.4 → 0.1.5

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: '0943329ada51e794c3615f38f285e87c0ad6fcf8'
4
- data.tar.gz: babd1b7a24c3f9145a781852bc82682fecb3109a
3
+ metadata.gz: b52c390454c367f391288e009cbf53a22b159daf
4
+ data.tar.gz: e22e722792fc7f34270eddb2b00223847770a46f
5
5
  SHA512:
6
- metadata.gz: f269767575c2bed24fcf5681cca9306f9acedddaa44576a7337615fc2a1eb8388ca282f3faaed204d13b6fb8f22213d5eb84ac295f1fe16a444da15cba5176a8
7
- data.tar.gz: 375ead456bba89e1584717a60cc289d8ec7f64e145ab18d447e8ead8aa91a2bfb0dce4da7932452f456db4ec7f51494a12c07b9950fa6060eea0b5b958c36e67
6
+ metadata.gz: 3f462f9b676eb155ae8918d4b47a924fada515bea021610ae64ce6d475328f76b7f16f3c9c0fbb45177b146bcb6a21660fba3bb1ec4abed157212cde32e15fd1
7
+ data.tar.gz: 2adb7e7437667337092b2cd1c6ce25435b76f1417327b247a67cddb168577a177dbd632a836df1d6592f91a8420accef5c745eb5585297894fa10cbf2a96be38
@@ -42,6 +42,14 @@ module OmniAuth
42
42
  # Customize the OAuth request phase to handle VATSIM SSO
43
43
  def request_phase
44
44
  request_token = consumer.get_request_token({oauth_callback: callback_url}, options.request_params) do |response_body|
45
+ # Debug the response body
46
+ # log :debug, response_body.inspect
47
+
48
+ # Log errors
49
+ if MultiJson.decode(response_body)['request']['result'] == 'fail'
50
+ log :error, MultiJson.decode(response_body)['request']['message']
51
+ end
52
+
45
53
  # symbolize string keys returned by VATSIM SSO
46
54
  MultiJson.decode(response_body)['token'].symbolize_keys
47
55
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Vatsim
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-vatsim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan P. Voss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
11
+ date: 2017-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json