omniauth-campus 6.1 → 6.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: 064706a2c20dc270ed4869bfa8922e1862f5d1d6
4
- data.tar.gz: d1804f4857298c777584329f14c89f9b344a718e
3
+ metadata.gz: 93ef695f40e27f2658d62b5939cece67db7bc403
4
+ data.tar.gz: 56bd483e94852a3bf96afd9922625c6db5646da1
5
5
  SHA512:
6
- metadata.gz: c58869335d8e19afe8977040a4169193644d6a782beef84e63e4f830e899ab351f2db38dd193a52367f9ad26831101cb0ced3a5a6c543905dc5b5da91d83121e
7
- data.tar.gz: 2b75baf93ea8d9fc06b4f7cf4a222a2196fb9771b35730e666a594eeb001c4f9ed2d9e5e5fcd415ff65f6852bc1b4bbbe6e2e204c52ffcb8eda00572fdf0d430
6
+ metadata.gz: e4aaa01f33f87c8cd3e61d9a460c9873cae8f6347c0b77e58e274d41b0e86f1b21b8b0ef087f188bb8ed8680904103f49d215ff6c4314573457adfa8d37bb011
7
+ data.tar.gz: f28d77c73efb1db6ae9ead87915ea01771cbdaf02e3765eae8d379df85cf23eff0894f2c2beef6fb6429a77f194dda10ae1dfbf7d30098385914a7d45f239cf9
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "6.1"
3
+ VERSION = "6.2"
4
4
  end
5
5
  end
6
6
 
@@ -22,7 +22,8 @@ module OmniAuth
22
22
  #:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
23
23
  :request_token_path => '/oauth/request_token',
24
24
  :access_token_path => '/oauth/access_token',
25
- :authorize_path => '/oauth/authorize'
25
+ :authorize_path => '/oauth/authorize',
26
+ :proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
26
27
  }
27
28
 
28
29
  option :name, "campus"
@@ -33,7 +34,7 @@ module OmniAuth
33
34
  #:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
34
35
 
35
36
 
36
- uid { raw_info['uid'] }
37
+ uid { access_token.params['uid'] }
37
38
 
38
39
  info do {
39
40
  :name => raw_info['name']
@@ -46,7 +47,7 @@ module OmniAuth
46
47
  end
47
48
 
48
49
  def raw_info
49
- @raw_info ||= MultiJson.decode(access_token.get("http://dev-oauth-test.gotpantheon.com/myawesomejson/user").body)
50
+ @raw_info ||= MultiJson.decode(access_token.get("http://dev-oauth-test.gotpantheon.com/myawesomejson/user.json").body)
50
51
  #@raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user.json").body)
51
52
  rescue ::Errno::ETIMEDOUT
52
53
  raise ::Timeout::Error
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: '6.1'
4
+ version: '6.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr