omniauth-campus 0.2.6 → 0.2.7

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: 5e796d46936ec4f4e4d86126f3df930c7fa25f70
4
- data.tar.gz: 325e6c2f81c5196fc425d40706afea09726ba709
3
+ metadata.gz: 6ebb64bf9df46e8e6262f01ebf1116b7729e8482
4
+ data.tar.gz: af806bed3c5e36304ce8b81483b8e84f694e1a1e
5
5
  SHA512:
6
- metadata.gz: 61468bd79d4ce152f67bc4f09396973e27410954644eb2bcd09836bf07124010422788c34931f04203f608a24731dcd593051db9265c9ae0bcd6e30c313688fb
7
- data.tar.gz: 1faaa649375c6eebc4cb7ccecc26dfe24c515dd53c01e07b3e2c0b9a017518946cbe515878d086d05efcf10347dc573c2bc0e573fcc9a7e29f411a097c202de6
6
+ metadata.gz: 1aa9a6fc3ffc91724d8f560f78481f3665b6bc846fa2ae530f65dec9a677a86fe09249f2770b8f6807735087b8e3c485dab968cfb796db836671d76c7dea9c87
7
+ data.tar.gz: 7163176810136ee331f4215f5236a96e1cda9b129b56f5a67c90c2caa64b74b14c01824568af6d5c85352943179019df99b8c74dd1b9d7d5c38781d2d5ac33f8
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.2.6"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
6
6
 
@@ -18,8 +18,7 @@ module OmniAuth
18
18
  option :endpoint, 'http://community3dev.devcloud.acquia-sites.com/api'
19
19
  option :consumer_key, "YzjVHuk8xoXCTcNwYg57yiCW5w59tucC"
20
20
  option :consumer_secret, "ZDrWuDsunNkRroU5psb6QyMmT86XkYST"
21
- option :authorize_params, {}
22
- option :request_params, {}
21
+
23
22
 
24
23
  option :fields, [:name, :email]
25
24
 
@@ -48,11 +47,6 @@ module OmniAuth
48
47
  form.to_response
49
48
  end
50
49
 
51
- def callback_phase
52
- return fail!(:invalid_credentials) if !authentication_response
53
- return fail!(:invalid_credentials) if authentication_response.code.to_i >= 400
54
- super
55
- end
56
50
 
57
51
  def api_uri
58
52
  options.endpoint
@@ -89,10 +83,7 @@ module OmniAuth
89
83
 
90
84
  uri = URI(api_uri)
91
85
  http = Net::HTTP.new(uri.host, uri.port)
92
- if uri.scheme == 'http'
93
- http.use_ssl = true
94
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
95
- end
86
+ http.use_ssl = OpenSSL::SSL::VERIFY_PEER
96
87
 
97
88
  req = Net::HTTP::Get.new(uri.request_uri)
98
89
  req.basic_auth name, email
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.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr