Sha256: 68b9b9d32f8a7685103049f514f4a26d4461579236a38aac323749186b105230
Contents?: true
Size: 1.36 KB
Versions: 5
Compression:
Stored size: 1.36 KB
Contents
require 'socialite' require 'simple_form' 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
5 entries across 5 versions & 1 rubygems