2012-04-18 07:40:37 +00:00
|
|
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
|
|
|
2015-04-30 17:46:06 +00:00
|
|
|
# twitter database connect
|
2017-01-10 21:14:02 +00:00
|
|
|
provider :twitter_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database', {
|
|
|
|
client_options: {
|
|
|
|
authorize_path: '/oauth/authorize',
|
|
|
|
site: 'https://api.twitter.com',
|
|
|
|
}
|
|
|
|
}
|
2012-04-18 07:40:37 +00:00
|
|
|
|
|
|
|
# facebook database connect
|
2017-01-10 21:14:02 +00:00
|
|
|
provider :facebook_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database'
|
2012-04-18 07:40:37 +00:00
|
|
|
|
|
|
|
# linkedin database connect
|
2017-01-10 21:14:02 +00:00
|
|
|
provider :linked_in_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database'
|
2012-04-18 11:26:59 +00:00
|
|
|
|
|
|
|
# google database connect
|
2017-01-10 21:14:02 +00:00
|
|
|
provider :google_oauth2_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database', {
|
|
|
|
authorize_options: {
|
|
|
|
access_type: 'online',
|
|
|
|
approval_prompt: '',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# github database connect
|
|
|
|
provider :github_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database'
|
|
|
|
|
|
|
|
# gitlab database connect
|
|
|
|
provider :gitlab_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database', {
|
|
|
|
client_options: {
|
|
|
|
site: 'https://not_change_will_be_set_by_database',
|
|
|
|
authorize_url: '/oauth/authorize',
|
|
|
|
token_url: '/oauth/token'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2017-07-14 06:15:14 +00:00
|
|
|
# microsoft_office365 database connect
|
|
|
|
provider :microsoft_office365_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database'
|
|
|
|
|
2017-01-10 21:14:02 +00:00
|
|
|
# oauth2 database connect
|
|
|
|
provider :oauth2_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database', {
|
|
|
|
client_options: {
|
|
|
|
site: 'https://not_change_will_be_set_by_database',
|
|
|
|
authorize_url: '/oauth/authorize',
|
|
|
|
token_url: '/oauth/token',
|
|
|
|
},
|
|
|
|
}
|
2012-04-18 07:40:37 +00:00
|
|
|
|
2017-09-26 14:41:55 +00:00
|
|
|
# weibo database connect
|
2017-09-30 08:21:16 +00:00
|
|
|
provider :weibo_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database'
|
2017-09-26 14:41:55 +00:00
|
|
|
|
2012-04-18 07:40:37 +00:00
|
|
|
end
|