omniauth-campus 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cfdadfbc4b58130e3db95db421cab97813b55aa
|
4
|
+
data.tar.gz: 4c95fd26b5659ebe49710058a0a96e85b6a9c1b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5027610d753962e76e1905ebb1d6451b1ae6d846e0aa02300f3f54da46a18edee4a3b55b3555fad360886f495dfd42e52702146d4c6a52d14f7196295b738434
|
7
|
+
data.tar.gz: 470b5fc84f6c52166d98066e4c9809b4258f2904e373f85d0fb50eee97dcb475ed6428663cc60be2dc75b0c3418732a1d056f04c22ac2fc6e83dd5f041f5d177
|
Binary file
|
@@ -19,10 +19,11 @@ module OmniAuth
|
|
19
19
|
option :consumer_secret, nil
|
20
20
|
option :callback_url, nil
|
21
21
|
option :client_options, {}
|
22
|
+
option :fields, [:username, :password]
|
22
23
|
|
23
24
|
#site: 'http://community3dev.devcloud.acquia-sites.com/api'
|
24
25
|
|
25
|
-
#option :client_options, {
|
26
|
+
#option :client_options, {]
|
26
27
|
# :site => 'http://community3dev.devcloud.acquia-sites.com/api',
|
27
28
|
# :authorize_url => 'https://www.vistacampus.org/login/oauth/authorize',
|
28
29
|
# :token_url => 'https://www.vistacampus.org/login/oauth/access_token'
|
@@ -34,8 +35,9 @@ module OmniAuth
|
|
34
35
|
|
35
36
|
def request_phase
|
36
37
|
form = OmniAuth::Form.new(:title => options.title, :url => callback_path)
|
37
|
-
|
38
|
-
|
38
|
+
options.fields.each do |field|
|
39
|
+
form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
|
40
|
+
end
|
39
41
|
form.button "Sign In"
|
40
42
|
form.to_response
|
41
43
|
end
|
Binary file
|