class OmniAuth::Strategies::Developer
the ‘uid` will simply be set to the provided email.
and email address. The auth hash will be populated with these fields and
they will be presented a form that prompts for (by default) their name
This will create a strategy that, when the user visits `/auth/developer`
end
:uid_field => :last_name
:fields => [:first_name, :last_name],
provider :developer,
use OmniAuth::Builder do
@example Custom Fields
end
provider :developer
use OmniAuth::Builder do
@example Basic Usage
other strategy:
To use the Developer strategy, all you need to do is put it in like any
## Usage
production setting.
is swapped in. It has zero security and should never be used in a
placeholder in your application until a different authentication strategy
The Developer strategy is a very simple strategy that can be used as a
def request_phase
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