omniauth-campus 0.4.7 → 0.4.8
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: a3aa81608d9b3c20dc330d44527514599be2b277
|
|
4
|
+
data.tar.gz: f8e064edb636380b1d78f3db39decb0cb9291d98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcb4a60e86eefa0b67a36bd7056b308200ce7f5ca81aea5605c3f865e33035c50777c26139775e18b7175d2bfd04ecdcca203a35fea5c635df470a0f980701a0
|
|
7
|
+
data.tar.gz: 9a4b12ff47b39bb095dec374bf2149543125f2f19f8ce7873f211342f7dc38cfbb9a6640ba7c64ca209a60f53c100bc4d0e2549b55eeaf40d682b002e5533995
|
|
Binary file
|
|
@@ -40,27 +40,10 @@ module OmniAuth
|
|
|
40
40
|
#
|
|
41
41
|
# }
|
|
42
42
|
#
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def get_credentials
|
|
50
|
-
form = OmniAuth::Form.new(:title => "User Info")
|
|
51
|
-
options.fields.each do |field|
|
|
52
|
-
form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
|
|
53
|
-
end
|
|
54
|
-
form.button "Sign In"
|
|
55
|
-
form.to_response
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def consumer
|
|
59
|
-
consumer = ::OAuth::Consumer.new(options.consumer_key, options.consumer_secret, options.client_options)
|
|
60
|
-
consumer.http.open_timeout = options.open_timeout if options.open_timeout
|
|
61
|
-
consumer.http.read_timeout = options.read_timeout if options.read_timeout
|
|
62
|
-
consumer
|
|
63
|
-
end
|
|
43
|
+
def request_phase
|
|
44
|
+
options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
|
|
45
|
+
super
|
|
46
|
+
end
|
|
64
47
|
|
|
65
48
|
uid {raw_info['uid']}
|
|
66
49
|
|
|
Binary file
|