Class: OmniAuth::Strategies::GalvanizeDeveloper

Inherits:
Object
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/galvanize_developer.rb

Instance Method Summary collapse

Instance Method Details

#request_phaseObject



14
15
16
17
18
19
20
21
# File 'lib/omniauth/strategies/galvanize_developer.rb', line 14

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