mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Fix docs on Developer strategy.
This commit is contained in:
parent
78301c00bb
commit
326e1a0e9c
1 changed files with 8 additions and 3 deletions
|
@ -18,13 +18,18 @@ module OmniAuth
|
|||
# provider :developer
|
||||
# end
|
||||
#
|
||||
# @example Custom Fields
|
||||
#
|
||||
# use OmniAuth::Builder do
|
||||
# provider :developer,
|
||||
# :fields => [:first_name, :last_name],
|
||||
# :uid_field => :last_name
|
||||
# end
|
||||
#
|
||||
# This will create a strategy that, when the user visits `/auth/developer`
|
||||
# they will be presented a form that prompts for (by default) their name
|
||||
# and email address. The auth hash will be populated with these fields and
|
||||
# the `uid` will simply be set to the provided email.
|
||||
#
|
||||
# @option options [Array] :fields An array of fields you would like to collect.
|
||||
# @option options [Symbol] :uid_field The field you'd like to use for the uid.
|
||||
class Developer
|
||||
include OmniAuth::Strategy
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue