omniauth-campus 0.7.3 → 0.7.4

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: 87f31b7f1e58a05d638bbf8521588e057d02b1a0
4
- data.tar.gz: 01706a832da0d4227daf1659350e6ec030715c69
3
+ metadata.gz: b9551668698a400c61540c0653d8d29ac9ef22cb
4
+ data.tar.gz: f8844c47989494605a5900bb2b21153c9cc0c3a7
5
5
  SHA512:
6
- metadata.gz: 4a89d282ff8154eabbacc474adfeb6dfa5f46b47410ac5e00572602b56d80c300e58b3214bff42e5ddb4c1e0d2d105c72209b3e35380dea31850849fa873207b
7
- data.tar.gz: b6f2ce1f78e87da70a9b4e51028439094e2ebcc54c7928d149a86adeceeae7216ea2baa593557ee342d39f3484fde73ca74dfc2dac3cf25900a5d6b6b7fd370f
6
+ metadata.gz: e751e977fee29267365635d7855acc99c68829053a2896af669a76c14164d8c1abed5712103c8a823a092f8b0cb1d44c00abcf72cd72c9f40ac4f8293af7434f
7
+ data.tar.gz: ecc7fbd7a518774cf27ad5e9daf44758ff995fdd059c87a587eac7ba08a2c7b4e6a29f0c141c9a2ac603113700e050cd8b310df93be9928f3beb7186e4379235
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  end
5
5
  end
6
6
 
@@ -1,4 +1,4 @@
1
- require "omniauth-oauth2"
1
+ require "omniauth-oauth"
2
2
  require 'multi_json'
3
3
  require 'faraday'
4
4
  require 'net/http'
@@ -14,18 +14,21 @@ require 'uri'
14
14
  module OmniAuth
15
15
  module Strategies
16
16
  # Your code goes here...
17
- class Campus < OmniAuth::Strategies::OAuth2
17
+ class Campus < OmniAuth::Strategies::OAuth
18
18
 
19
19
 
20
20
  option :name, 'campus'
21
- args [:client_id, :client_secret]
21
+ args [:consumer_key, :consumer_secret]
22
22
  #option :consumer_key, "YzjVHuk8xoXCTcNwYg57yiCW5w59tucC"
23
23
  #option :consumer_secret, "ZDrWuDsunNkRroU5psb6QyMmT86XkYST"
24
24
  option :client_options, {
25
- token_url: '/oauth/access_token',
26
- authorize_url: '/oauth/authorize',
25
+ request_token_path: '/oauth/request_token',
26
+ access_token_path: '/oauth/access_token',
27
+ authorize_path: '/oauth/authorize',
27
28
  #request_token_path: '/oauth/request_token',
28
- site: 'http://dev-oauth-test.gotpantheon.com/'
29
+ site: 'http://dev-oauth-test.gotpantheon.com/myawesomejson',
30
+ http_method: :get,
31
+ scheme: :query_string
29
32
  }
30
33
 
31
34
  option :authorize_options, [:scope, :display, :auth_type]
@@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
- #spec.add_runtime_dependency 'omniauth', '~> 1.0'
24
- spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1', '>= 1.1.1'
25
- #spec.add_runtime_dependency 'oauth'
23
+ spec.add_runtime_dependency 'omniauth', '~> 1.0'
24
+ #spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1', '>= 1.1.1'
25
+ spec.add_runtime_dependency 'oauth'
26
26
  #spec.add_dependency 'oauth2', '~> 0.8.0'
27
27
  spec.add_dependency 'faraday', ['>= 0.8', '<0.10']
28
28
  spec.add_dependency 'multi_json', '~> 1.3'
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: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr
@@ -39,25 +39,33 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: omniauth-oauth2
42
+ name: omniauth
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '1.1'
48
- - - '>='
49
- - !ruby/object:Gem::Version
50
- version: 1.1.1
47
+ version: '1.0'
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
52
  - - ~>
56
53
  - !ruby/object:Gem::Version
57
- version: '1.1'
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: oauth
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
58
59
  - - '>='
59
60
  - !ruby/object:Gem::Version
60
- version: 1.1.1
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
61
69
  - !ruby/object:Gem::Dependency
62
70
  name: faraday
63
71
  requirement: !ruby/object:Gem::Requirement