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: 1fb3c4adc08c2e57b84b11cc9f8c2c21ce15a33b
4
- data.tar.gz: f116a23a913e0b49f6c9a11f07f516699483f494
3
+ metadata.gz: 91f0ac0144ab79714fd31001007ca0462db0b55c
4
+ data.tar.gz: ebbe61859cea155be7a79aaf2aac0ad6b483545e
5
5
  SHA512:
6
- metadata.gz: fbf591e3e3c7257ae62ac2fee7bb1347aad8894f287dabd3b8d745be667a3405102a3ed259e36426adc7caaee6b12b72f6618154031db12847b0691e376fb55f
7
- data.tar.gz: 6aace919443e9609510df49a270f57f5058dffbf380cdbf5c3a1165a4f098cd464832cf903cff67f741146040da666b52c333a325f49ad8eb4afe62ce7eacf87
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
- def request_phase
56
- request_token = consumer.get_request_token({:oauth_callback => callback_url}, options.request_params)
57
- session['oauth'] ||= {}
58
- session['oauth'][name.to_s] = {'callback_confirmed' => request_token.callback_confirmed?, 'request_token' => request_token.token, 'request_secret' => request_token.secret}
59
-
60
- if request_token.callback_confirmed?
61
- redirect request_token.authorize_url(options[:authorize_params])
62
- else
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
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
5
5
  end
6
6
 
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.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr