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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a66b8683482d84c9e5c8963a2549c21b71cc50
|
4
|
+
data.tar.gz: 8ff945c7900b90db108befae869d49525ec9b46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
31
|
-
rescue ::Errno::ETIMEDOUT
|
32
|
-
|
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
|