omniauth-campus 0.8.0 → 0.8.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: 91f0ac0144ab79714fd31001007ca0462db0b55c
|
4
|
+
data.tar.gz: ebbe61859cea155be7a79aaf2aac0ad6b483545e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f79c9e158305395492225ddd2fa9ce1baa84c3f3b4a79cdd66cc14210001ddca959d7a6642367afeef339e8936441f89a5ce7744198348e58144115c7bbaf8c
|
7
|
+
data.tar.gz: edca576413b21010bb5a56ee1ef3a366a350777b2096019f39adc8ee8ccc27bd4ac9b87a6b1a9ae91f8436b85e54bf885dc3807c09cb7bcffdb9459c169b3d45
|
Binary file
|
@@ -28,6 +28,7 @@ module OmniAuth
|
|
28
28
|
#request_token_path: '/oauth/request_token',
|
29
29
|
site: 'http://community3dev.devcloud.acquia-sites.com/api'
|
30
30
|
}
|
31
|
+
option :fields, [:username, :email]
|
31
32
|
|
32
33
|
|
33
34
|
|
@@ -52,22 +53,14 @@ module OmniAuth
|
|
52
53
|
consumer
|
53
54
|
end
|
54
55
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
redirect request_token.authorize_url(options[:authorize_params].merge(:oauth_callback => callback_url))
|
64
|
-
end
|
65
|
-
|
66
|
-
rescue ::Timeout::Error => e
|
67
|
-
fail!(:timeout, e)
|
68
|
-
rescue ::Net::HTTPFatalError, ::OpenSSL::SSL::SSLError => e
|
69
|
-
fail!(:service_unavailable, e)
|
70
|
-
end
|
56
|
+
def request_phase
|
57
|
+
form = OmniAuth::Form.new(:title => "User Info", :url => callback_path)
|
58
|
+
options.fields.each do |field|
|
59
|
+
form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
|
60
|
+
end
|
61
|
+
form.button "Sign In"
|
62
|
+
form.to_response
|
63
|
+
end
|
71
64
|
|
72
65
|
uid {raw_info['uid']}
|
73
66
|
|
Binary file
|