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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ebb64bf9df46e8e6262f01ebf1116b7729e8482
|
|
4
|
+
data.tar.gz: af806bed3c5e36304ce8b81483b8e84f694e1a1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1aa9a6fc3ffc91724d8f560f78481f3665b6bc846fa2ae530f65dec9a677a86fe09249f2770b8f6807735087b8e3c485dab968cfb796db836671d76c7dea9c87
|
|
7
|
+
data.tar.gz: 7163176810136ee331f4215f5236a96e1cda9b129b56f5a67c90c2caa64b74b14c01824568af6d5c85352943179019df99b8c74dd1b9d7d5c38781d2d5ac33f8
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|