omniauth-campus 3.0 → 3.1

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: fdac705ca4ab1a5c6c467d5bc9e3aaec11266b13
4
- data.tar.gz: ad62913d3c27afec6a224f9a2ce5f09cb0c7b7ae
3
+ metadata.gz: acbdeebc5edcd5b8ff2d4122a31ffadd98d05612
4
+ data.tar.gz: 37740e8f9029bda47ca7f9b01840494e8ac046f2
5
5
  SHA512:
6
- metadata.gz: 965254dcb6c7619f17d9eb82f358a9b84494035db2f5c6bc39a02a0fac09a83712c94a77ebe6c4335980228ccf1b0dd42747cd4ec9c92557c157630d6fbf3666
7
- data.tar.gz: 32d3214ae6266804a63529878a0c73633758fd080312446424713f9385db0b21c1f46c465c0415d4f1f6d59cb57de924bdcd4daef55b91e8b827e2a8cdad4390
6
+ metadata.gz: 21da65e823342aad5fe034cc71ef4cd13088ced84848fe1ac3d4d8b6bb40e1f1223963906de9d6d585c00523ea723cc23f39b2990e7518d35b0e8d1f3fa4e8b4
7
+ data.tar.gz: 83ca452757c8687bf7e2a3c30ca4930da63da8c124b8b394b6f2e461bfebc5dfc6c4bbd51349b902cae077180da6bdafa83cbe22f2570cc4fe75a8ac6c0f0c94
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "3.0"
3
+ VERSION = "3.1"
4
4
  end
5
5
  end
6
6
 
@@ -33,15 +33,24 @@ module OmniAuth
33
33
 
34
34
 
35
35
 
36
- def request_phase
37
- r = Rack::Response.new
38
- r.redirect 'http://dev-oauth-test.gotpantheon.com/myawesomejson'
39
- r.finish
36
+ uid {user_info['uid']}
37
+
38
+ extra do
39
+ {
40
+ :raw_info => raw_info
41
+ }
40
42
  end
41
43
 
44
+ def raw_info
45
+ @raw_info ||= MultiJson.decode(access_token.get('/users.json').body)
46
+ rescue ::Errno::ETIMEDOUT
47
+ raise ::Timeout::Error
48
+ end
42
49
 
43
- def callback_phase
44
- end
50
+ def request_phase
51
+ options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
52
+ super
53
+ end
45
54
 
46
55
  def auth_hash
47
56
  OmniAuth::Utils.deep_merge(super(), {
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: '3.0'
4
+ version: '3.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr