omniauth-campus 0.6.3 → 0.6.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: 9d88848165eb30bc215d0a58666d0e06274c93e6
4
- data.tar.gz: 4f89c48cfc9e3f493ef9621b6e48425f7efd5d0b
3
+ metadata.gz: f475dce3069d8e2e14425d837453ca41fe8563f9
4
+ data.tar.gz: 3babc1b3f9ca5de74cfdb063ed65ab9551aa5267
5
5
  SHA512:
6
- metadata.gz: 413e77c25c65e7ae5344e25f563c88429b814cd35fc0ceb10bc0bb0c56975e4589e5f6ef792cce2f77fbc48d896205fa309bc2291df1a3a7497a84c1f2c1da3f
7
- data.tar.gz: 036221fdf8f4d3333b138f7b8a5fcebac8fd987d26f2e7630dd71ce55d1a04b3fb6670524a0fcb0e06f5a7eb9f7cf8168c303228d8c547cb7fc0d1178d6c94a9
6
+ metadata.gz: 8eab2d96d7e4ae76b1d49c988893b144afd0e9077f20e5112ee5e51e1eccaf5acbeacf6a2e180794f602480c2fbee727efe37efd92e211982d7c351487af6952
7
+ data.tar.gz: d3693ec2cd5a021bc2ed2b4f128ccbfbbc7dd5251f5386c0153eb06c624261cf64081a3ba9c5df1123ed43ffd3ee0636f5edbfae51985ac48ac525d25cef10dc
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- require "omniauth-oauth"
1
+ require "omniauth-oauth2"
2
2
  require 'multi_json'
3
3
  require 'faraday'
4
4
  require 'net/http'
@@ -12,31 +12,24 @@ require 'uri'
12
12
  module OmniAuth
13
13
  module Strategies
14
14
  # Your code goes here...
15
- class Campus < OmniAuth::Strategies::OAuth
15
+ class Campus < OmniAuth::Strategies::OAuth2
16
16
 
17
17
 
18
18
  option :name, 'campus'
19
- args [:consumer_key, :consumer_secret]
19
+ args [:client_id, :client_secret]
20
20
  #option :consumer_key, "YzjVHuk8xoXCTcNwYg57yiCW5w59tucC"
21
21
  #option :consumer_secret, "ZDrWuDsunNkRroU5psb6QyMmT86XkYST"
22
22
  option :client_options, {
23
- access_token_path: '/oauth/access_token',
24
- authorize_path: '/oauth/authorize',
25
- request_token_path: '/oauth/request_token',
26
- site: 'https://community3dev.devcloud.acquia-sites.com/api'
23
+ token_url: '/oauth/access_token',
24
+ authorize_url: '/oauth/authorize',
25
+ #request_token_path: '/oauth/request_token',
26
+ site: 'http://community3dev.devcloud.acquia-sites.com/api'
27
27
  }
28
- option :consumer_key, nil
29
- option :consumer_secret
30
28
 
31
29
  option :fields, [:name, :email]
32
30
 
33
31
  attr_accessor :access_token
34
32
 
35
- def request_phase
36
- options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
37
- super
38
- end
39
-
40
33
 
41
34
  #site' 'http://community3dev.devcloud.acquia-sites.com/api'
42
35
 
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.6.3"
3
+ VERSION = "0.6.4"
4
4
  end
5
5
  end
6
6
 
@@ -20,8 +20,8 @@ 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-oauth', '~> 1.0'
24
- #spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1'
23
+ #spec.add_runtime_dependency 'omniauth', '~> 1.0'
24
+ spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1'
25
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']
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.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: omniauth-oauth
42
+ name: omniauth-oauth2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: 1.1.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: 1.1.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday
57
57
  requirement: !ruby/object:Gem::Requirement