omniauth-campus 0.8.5 → 0.8.6
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: 0a7fb39ec4dfc6bec70734cc17b10247f579c8a0
|
4
|
+
data.tar.gz: 1e9f3165b8694f2926d12f3343613c145b918846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f56ffbc29d39068cdc3e4e94df935198ce19f694a96575cbbdf861313083f80baf99493a4b0b6c4f9d876d5b68718410b776f0d769554846dc231a0cf5f76d
|
7
|
+
data.tar.gz: 31591aaf189e5abe8308a60ed2becc4c164ea7c6fced05ec04ab3da7649f05957bab5f79d23609a6421cbedbed4aa7bb7fbfcc3ac00f6a9deea5b85a57631765
|
Binary file
|
Binary file
|
@@ -1,14 +1,13 @@
|
|
1
1
|
require 'omniauth-oauth2'
|
2
2
|
require 'rack/utils'
|
3
|
+
require 'multi_json'
|
3
4
|
|
4
5
|
module OmniAuth
|
5
6
|
module Strategies
|
6
7
|
class Campus < OmniAuth::Strategies::OAuth2
|
7
8
|
option :name, 'campus'
|
8
9
|
option :client_options, {
|
9
|
-
:site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson'
|
10
|
-
:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
|
11
|
-
}
|
10
|
+
:site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson' }
|
12
11
|
|
13
12
|
|
14
13
|
|
@@ -28,7 +27,7 @@ module OmniAuth
|
|
28
27
|
end
|
29
28
|
|
30
29
|
def raw_info
|
31
|
-
@raw_info ||= MultiJson.load(access_token.get('/users').body)
|
30
|
+
@raw_info ||= MultiJson.load(access_token.get('/users').body)
|
32
31
|
rescue ::Errno::ETIMEDOUT
|
33
32
|
raise ::Timeout::Error
|
34
33
|
end
|