2012-04-18 07:40:37 +00:00
|
|
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
|
|
|
|
|
|
# twitter database connect
|
2012-04-18 11:26:59 +00:00
|
|
|
provider :twitter_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse',
|
2012-04-18 07:40:37 +00:00
|
|
|
:client_options => { :authorize_path => '/oauth/authorize', :site => 'https://api.twitter.com' }
|
|
|
|
|
|
|
|
# facebook database connect
|
2012-04-18 11:26:59 +00:00
|
|
|
provider :facebook_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse'
|
2012-04-18 07:40:37 +00:00
|
|
|
|
|
|
|
# linkedin database connect
|
2012-04-18 11:26:59 +00:00
|
|
|
provider :linked_in_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse'
|
|
|
|
|
|
|
|
# google database connect
|
|
|
|
provider :google_oauth2_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse',
|
|
|
|
:authorize_options => { :access_type => 'online', :approval_prompt => '' }
|
2012-04-18 07:40:37 +00:00
|
|
|
|
|
|
|
end
|