|
|
|
@@ -14,7 +14,7 @@ OmniAuth.config.on_failure = Proc.new { |env| |
|
|
|
|
|
|
|
Rails.application.config.middleware.use OmniAuth::Builder do |
|
|
|
if config.dig("oauth", "qq") |
|
|
|
provider :qq, config.dig("oauth", "qq", "appid"), config.dig("oauth", "github", "secret"), { provider_ignores_state: true } |
|
|
|
provider :qq, config.dig("oauth", "qq", "appid"), config.dig("oauth", "qq", "secret"), { provider_ignores_state: true } |
|
|
|
end |
|
|
|
if config.dig("oauth", "github").present? |
|
|
|
provider :github, config.dig("oauth", "github", "appid"), config.dig("oauth", "github", "secret"), { provider_ignores_state: true, scope: "user:email" } |
|
|
|
|