omniauth-campus 2.4 → 2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-campus/version.rb +1 -1
- data/lib/omniauth/strategies/campus.rb +11 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5b812704a701d81ea2052b792844127b3b2389c
|
4
|
+
data.tar.gz: 1c1e100a5420a992827c481bcefc68d0ea1a1530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebb8ee6c370f731617cac730b80894c86209905001789348ccc5e12642bbab35dc37d4a107bfc75b3e18516bdb5164fcada20cd5fd5dc803a19c9f68bd9d794b
|
7
|
+
data.tar.gz: d1fb40e6c298a92142a01065db03a09363d2e1065aa53a3f78317cb407af347a841f09547362b1084c1ab8a97ec8ef4f9e85fce6cb835ef281b432e266ba8d7d
|
@@ -31,15 +31,21 @@ module OmniAuth
|
|
31
31
|
#:site => 'http://dev-oauth-test.gotpantheon.com/myawesomejson',
|
32
32
|
#:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
|
33
33
|
|
34
|
-
def initialize(app,
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
def initialize(app, consumer_key = nil, consumer_secret = nil, options = {})
|
35
|
+
|
36
|
+
opts = {
|
37
|
+
:site => 'http://dev-oauth-test.gotpantheon.com/myawesomejson',
|
38
|
+
:request_token_path => "/oauth/request_token",
|
39
|
+
:access_token_path => "/oauth/access_token",
|
40
|
+
:authorize_url => "'http://dev-oauth-test.gotpantheon.com/myawesomejson'/oauth/authorize"
|
41
|
+
}
|
42
|
+
sup
|
43
|
+
super(app, :campus, consumer_key, consumer_secret, opts, options, &block)
|
38
44
|
end
|
39
45
|
|
40
46
|
def request_phase
|
41
47
|
r = Rack::Response.new
|
42
|
-
r.redirect
|
48
|
+
r.redirect 'http://dev-oauth-test.gotpantheon.com/myawesomejson'
|
43
49
|
r.finish
|
44
50
|
end
|
45
51
|
|