omniauth-campus 6.2 → 6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93ef695f40e27f2658d62b5939cece67db7bc403
4
- data.tar.gz: 56bd483e94852a3bf96afd9922625c6db5646da1
3
+ metadata.gz: c510e481bea45151b0ef68463ee248f75a49e91e
4
+ data.tar.gz: ddadf4b9c7aaa87d29091a3bfcf0c25805f8d7fe
5
5
  SHA512:
6
- metadata.gz: e4aaa01f33f87c8cd3e61d9a460c9873cae8f6347c0b77e58e274d41b0e86f1b21b8b0ef087f188bb8ed8680904103f49d215ff6c4314573457adfa8d37bb011
7
- data.tar.gz: f28d77c73efb1db6ae9ead87915ea01771cbdaf02e3765eae8d379df85cf23eff0894f2c2beef6fb6429a77f194dda10ae1dfbf7d30098385914a7d45f239cf9
6
+ metadata.gz: 43661610916f725df5d8b4f81a4351a490d854c40cdd6c070a9cbaa2f9b16d6fd10abbff03d8ad5ac86f8bebcee4ba4010f330cf74d9dfaac69c7f80dedee3fc
7
+ data.tar.gz: b58df18b655491c9aecb3f154c2a1a50a018240f149a60784e19606e8fe72af5120f8c272740c9d0f89498307aca2564d1b746cae45f06e4514413d5a53fd63e
@@ -22,8 +22,7 @@ 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',
26
- :proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
25
+ :authorize_path => '/oauth/authorize'
27
26
  }
28
27
 
29
28
  option :name, "campus"
@@ -34,10 +33,11 @@ module OmniAuth
34
33
  #:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
35
34
 
36
35
 
37
- uid { access_token.params['uid'] }
36
+ uid { raw_info['uid'] }
38
37
 
39
38
  info do {
40
- :name => raw_info['name']
39
+ :name => raw_info['name'],
40
+ :mail => raw_info['mail']
41
41
  }
42
42
  end
43
43
 
@@ -47,8 +47,8 @@ module OmniAuth
47
47
  end
48
48
 
49
49
  def raw_info
50
- @raw_info ||= MultiJson.decode(access_token.get("http://dev-oauth-test.gotpantheon.com/myawesomejson/user.json").body)
51
- #@raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user.json").body)
50
+ #@raw_info ||= MultiJson.decode(access_token.get("#{options[:client_options][:site]}/myawesomejson/user.json").body)
51
+ @raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user.json").body)
52
52
  rescue ::Errno::ETIMEDOUT
53
53
  raise ::Timeout::Error
54
54
  end
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "6.2"
3
+ VERSION = "6.3"
4
4
  end
5
5
  end
6
6
 
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.2'
4
+ version: '6.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr