Sha256: 73b2fcb1a9e704ff8e48270811710bbbe371cf5d91b16af887b5ef984fbbd8c2
Contents?: true
Size: 1.31 KB
Versions: 15
Compression:
Stored size: 1.31 KB
Contents
Socialite.setup do |config| ## Configure Classes # If you are not using the default names set below. Please change them to # reflect the correct classes. # # **NOTE** These _should_ be set to string values to prevent any possible # errors caused by load order. config.user_class = 'User' config.identity_class = 'Identity' ## Add any supported OmniAuth providers # You can pass any providers that are supported by OmniAuth simply by # including it in your Gemfile. # # Examples: # config.provider :facebook, ENV['FACEBOOK_APP_KEY'], ENV['FACEBOOK_SECRET'], # :scope => 'email,friends' # config.provider :identity, :on_failed_registration => lambda { |env| # UsersController.action(:new).call(env) # } # config.provider :twitter, ENV['TWITTER_APP_KEY'], ENV['TWITTER_SECRET'] # We highly recommended adding the omniauth-identity gem to your Gemfile. # This does not enforce a password on signup, but establishes a common # 'password recovery' entry point for all users. # # config.provider :identity, # :model => Socialite.user_class, # :fields => [:email], # :on_failed_registration => Socialite::UsersController.action(:new) if Rails.env.production? # Any production specific information elsif Rails.env.development? # Configs for development mode go here end end
Version data entries
15 entries across 10 versions & 1 rubygems