Method: OmniAuth::Strategies::Developer#request_phase

Defined in:
lib/omniauth/strategies/developer.rb

#request_phaseObject



37
38
39
40
41
42
43
44
# File 'lib/omniauth/strategies/developer.rb', line 37

def request_phase
  form = OmniAuth::Form.new(:title => 'User Info', :url => callback_path, :method => 'get')
  options.fields.each do |field|
    form.text_field field.to_s.capitalize.tr('_', ' '), field.to_s
  end
  form.button 'Sign In'
  form.to_response
end