omniauth-campus 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19dc3abce80d3ea07bb36247ef37c114ae78a051
4
- data.tar.gz: d83e3216bef53cfceea0703fecadd2e912dbe1b3
3
+ metadata.gz: 85cc497ab1d8de1e18e56c53921c89c0a7e21e6b
4
+ data.tar.gz: a889de3873566b960f9b6b0e4f564af3a328dee5
5
5
  SHA512:
6
- metadata.gz: b2a2189af4a0fcc83e9c81d2c410fe209a34b5041836030d3542450acf9be0f5550c2b25c3dfe7846c7c5a3fb38a76d450c0ca82584a3307632fbfc77dfd6b8b
7
- data.tar.gz: 8302db769c16907e3a4e1cca81f6796f83fd620aca17f04c6a440038b3d09afc2191ac78cbf0e6d7ba5a34f1fbe40e8cba7c23f001fff4f9a49521acb003b908
6
+ metadata.gz: fa9a3265782c8d0bec67fd419f0f05066da6591bd8d0ecbc653bdf7d44e5490197d67c078976336a195e6ef65ce9c2d5160ecf62ae569e51ac14fc5cecba51a1
7
+ data.tar.gz: f149a2dc03f81b4f20e8507c1588a22eef63482ce358ee559c5cbe279237ab3a2dc3c65a8c85ecb9891554d14b9ff156c634a4fd338fa062109d5b7e01c84453
Binary file
Binary file
@@ -1,6 +1,4 @@
1
- require 'oauth'
2
- #require 'oauth'
3
- require 'omniauth'
1
+ require "omniauth-oauth2"
4
2
  require 'multi_json'
5
3
  require 'faraday'
6
4
  require 'net/http'
@@ -14,17 +12,16 @@ require 'uri'
14
12
  module OmniAuth
15
13
  module Strategies
16
14
  # Your code goes here...
17
- class Campus
18
- include OmniAuth::Strategy
15
+ class Campus < OmniAuth::Strategies::OAuth2
19
16
 
20
17
  option :name, 'campus'
21
- args [:consumer_key, :consumer_secret]
18
+ args [:client_id, :client_secret]
22
19
  #option :consumer_key, "YzjVHuk8xoXCTcNwYg57yiCW5w59tucC"
23
20
  #option :consumer_secret, "ZDrWuDsunNkRroU5psb6QyMmT86XkYST"
24
21
  option :client_options, {
25
- access_token_path: '/oauth/access_token',
26
- authorize_path: '/oauth/authorize',
27
- request_token_path: '/oauth/request_token',
22
+ token_url: '/oauth/access_token',
23
+ authorize_url: '/oauth/authorize',
24
+ #request_token_path: '/oauth/request_token',
28
25
  site: 'https://vistacampus.org'
29
26
  }
30
27
 
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  end
5
5
  end
6
6
 
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_runtime_dependency 'omniauth', '~> 1.0'
24
- #spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1'
25
- spec.add_runtime_dependency 'oauth'
24
+ spec.add_runtime_dependency 'omniauth-oauth2', '~> 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.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: oauth
56
+ name: omniauth-oauth2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.1.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.1.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: faraday
71
71
  requirement: !ruby/object:Gem::Requirement