omniauth-campus 0.8.7 → 0.8.8

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: dd88efa3e18f219ce5c42fb96f0bdb96eab08428
4
- data.tar.gz: b38539a3934ddc753bffc1b2e475aeee1fdcc35b
3
+ metadata.gz: 68a66b8683482d84c9e5c8963a2549c21b71cc50
4
+ data.tar.gz: 8ff945c7900b90db108befae869d49525ec9b46c
5
5
  SHA512:
6
- metadata.gz: 1862f566251c9b99460300a37e312247428fe59ca6f47b71e450542de546e2c66d80b3000930292f146ae3572c436b45d4c470cf9f821dadeeb447795831968b
7
- data.tar.gz: ff1ff2cec2043b9c186d78397c9f887b18f6634dd56c44d32b154af4a566f178aa6072817c31565b116494dbd3092310c0b423145f66d0e44c08d141ad455841
6
+ metadata.gz: 3aba42804bbf029c0040867791a4628a9f8d9ff4c85a40b5797dee5db73bc250b8384857c1d0ec02eaa5ccd6e6f8534c307c01627a04d95c60edaab1a541e09b
7
+ data.tar.gz: 0d004a9330071b7485aa866f1dacd7ff1fed36936592f439c1bd82bbae33eca43f8657cd9ba2c6c2d4f7d3fec16c0c755b9a1d2a165ac47306e140c9981ef76b
Binary file
@@ -1,14 +1,21 @@
1
1
  require 'omniauth-oauth'
2
2
  require 'rack/utils'
3
3
  require 'multi_json'
4
+ require 'oauth'
4
5
 
5
6
  module OmniAuth
6
7
  module Strategies
7
8
  class Campus < OmniAuth::Strategies::OAuth
8
9
  option :name, 'campus'
9
10
  option :client_options, {
10
- :site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson' }
11
+ :site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson',
12
+ :authorize_url => '/oauth/authorize',
13
+ :token_url => '/oauth/access_token'
14
+ }
11
15
 
16
+ def request_phase
17
+ super
18
+ end
12
19
 
13
20
 
14
21
  uid { raw_info['uid'] }
@@ -27,9 +34,9 @@ module OmniAuth
27
34
  end
28
35
 
29
36
  def raw_info
30
- @raw_info ||= MultiJson.load(access_token.get('/users').body)
31
- rescue ::Errno::ETIMEDOUT
32
- raise ::Timeout::Error
37
+ # @raw_info ||= MultiJson.load(access_token.get('/users').body)
38
+ #rescue ::Errno::ETIMEDOUT
39
+ # raise ::Timeout::Error
33
40
  end
34
41
 
35
42
  end
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.8.7"
3
+ VERSION = "0.8.8"
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: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr