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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c7ce8bc2f33e1755775d5cb76ceaecac5f25463
4
- data.tar.gz: ee8ce8d3041a965b52e558b7a84a7a6ee6f94e64
3
+ metadata.gz: b5b812704a701d81ea2052b792844127b3b2389c
4
+ data.tar.gz: 1c1e100a5420a992827c481bcefc68d0ea1a1530
5
5
  SHA512:
6
- metadata.gz: 33edcc8e3c9f0b336888b891d2a1cd66b053c63825e00b3de4ad77717b2f60c20152a1ac8a57b7675c76fd76dab6925c2576e07314b4428123398f509ec364cb
7
- data.tar.gz: e9a41e6a4dd8e0bb023d3d1f8d280b1a20140bce5f31730373f7df534c348568b13be8628fb2614598c3dd45ecd5eab341c80aec76e2d5e8a590f8bdd7fe229a
6
+ metadata.gz: ebb8ee6c370f731617cac730b80894c86209905001789348ccc5e12642bbab35dc37d4a107bfc75b3e18516bdb5164fcada20cd5fd5dc803a19c9f68bd9d794b
7
+ data.tar.gz: d1fb40e6c298a92142a01065db03a09363d2e1065aa53a3f78317cb407af347a841f09547362b1084c1ab8a97ec8ef4f9e85fce6cb835ef281b432e266ba8d7d
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "2.4"
3
+ VERSION = "2.5"
4
4
  end
5
5
  end
6
6
 
@@ -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, secret, auth_redirect, options = {})
35
- @secret = secret
36
- @auth_redirect = auth_redirect
37
- super(app, :campus, options)
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 @auth_redirect
48
+ r.redirect 'http://dev-oauth-test.gotpantheon.com/myawesomejson'
43
49
  r.finish
44
50
  end
45
51
 
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: '2.4'
4
+ version: '2.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr