omniauth-campus 0.0.6 → 0.0.7
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: 6ec74a47e48a7b3fe746a957901d055737c46616
|
4
|
+
data.tar.gz: aa3f983dddcdb06dc1f2a892713fc2b15c59617f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9072294e221a486605944501142719069bb48e32297461216b3fd38624fca0bdcef74af6f20e0f3cd1d25f4ff21db93c17460d6dee3e21740222daf475a77d4
|
7
|
+
data.tar.gz: 0cc75c44667a977bce3711fecdad33f1a06a49acea74c16d38b0d761c1d4afdc3da17c4740104c0d744fae105c38823f1bf00bd1bfbdd35f3dfde780ce1b999f
|
Binary file
|
Binary file
|
@@ -26,7 +26,7 @@ module OmniAuth
|
|
26
26
|
attr_reader :access_tokens
|
27
27
|
|
28
28
|
def consumer
|
29
|
-
consumer = ::
|
29
|
+
consumer = ::OAuth::Consumer.new(options.consumer_key, options.consumer_secret, options.client_options)
|
30
30
|
consumer.http.open_timeout = options.open_timeout if options.open_timeout
|
31
31
|
consumer.http.read_timeout = options.read_timeout if options.read_timeout
|
32
32
|
end
|
@@ -51,7 +51,7 @@ module OmniAuth
|
|
51
51
|
def callback_phase
|
52
52
|
raise OmniAuth::NoSessionError.new("Session Expired") if session['campus'].nil?
|
53
53
|
|
54
|
-
request_token = ::
|
54
|
+
request_token = ::Oauth::RequestToken.new(consumer, session['campus'][name.to_s].delete('request_token'), session['campus'][name.to_s].delete('request_secret'))
|
55
55
|
|
56
56
|
opts = {}
|
57
57
|
if session['campus'][name.to_s]['callback_confirmed']
|