omniauth.rb 791 B

1234567891011121314151617
  1. Rails.application.config.middleware.use OmniAuth::Builder do
  2. # twitter database connect
  3. provider :twitter_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse',
  4. :client_options => { :authorize_path => '/oauth/authorize', :site => 'https://api.twitter.com' }
  5. # facebook database connect
  6. provider :facebook_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse'
  7. # linkedin database connect
  8. provider :linked_in_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse'
  9. # google database connect
  10. provider :google_oauth2_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse',
  11. :authorize_options => { :access_type => 'online', :approval_prompt => '' }
  12. end