omniauth-campus 0.1.7 → 0.1.8

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: fbf450eb5901593e57335df7023951c4748a0513
4
- data.tar.gz: 79f7458d1c9cb9701cc558ffa7b2a24d91e0c3fc
3
+ metadata.gz: a4bb8f66dce827ce55769296ef2193ad5e54d728
4
+ data.tar.gz: 33e61f3812b19a185d83b91c7b1843e21c84eb85
5
5
  SHA512:
6
- metadata.gz: 15c04915612bf450b030711961d94dce8d27b9ab4cfee6ec1a6bb8f253101279818f2d16d287d3f8a21b7ee72f5fd508d81aca7bb7bd33f629389650cbf8c2a7
7
- data.tar.gz: 2363531193dd69c0b5e78a41101adaac5345d722e17fd1399e01bfcd3c6ef2fa084dc2d4aaafbfd336ccb004652753f378eff9890f33a566121149b0ba90ea47
6
+ metadata.gz: 1d93f09d6aef935804442ede97b85eb61f18ed7252d2ced891da12f4309860784b35f658d174090052385a0b9670f69ca8dd34e349fc2c2669a9dfb5de185b10
7
+ data.tar.gz: 2e25b13a6916933a2233be961a4778751785122ec80698e789efd590528f204b3030989a370f8b53817504512f9564784070c157e8085aef026377d32cc7ab8a
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
6
6
 
Binary file
@@ -1,9 +1,7 @@
1
1
  require 'oauth'
2
2
  require 'omniauth'
3
3
  require 'multi_json'
4
- require 'openssl'
5
- require 'uri'
6
- require 'net/http'
4
+
7
5
  #require 'rack/utils'
8
6
 
9
7
  module OmniAuth
@@ -48,7 +46,7 @@ module OmniAuth
48
46
  form.to_response
49
47
  end
50
48
 
51
- uid {request.params['user_id']}
49
+ uid {access_token.params['user_id']}
52
50
 
53
51
  info do {
54
52
  name: raw_info['name'],
@@ -61,7 +59,7 @@ module OmniAuth
61
59
  end
62
60
 
63
61
  def raw_info
64
- @raw_info ||= access_token.get('/oauth/request_access').parsed
62
+ @raw_info ||= MultiJson.decode(access_token.get('/oauth/request_access')).body
65
63
  end
66
64
 
67
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-campus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr