DEV: Fix rubocop offences
This commit is contained in:
parent
be136eacb4
commit
5984e52dc6
|
@ -46,7 +46,6 @@ class ::OmniAuth::Strategies::Oauth2Basic < ::OmniAuth::Strategies::OAuth2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if Gem::Version.new(Faraday::VERSION) > Gem::Version.new('1.0')
|
if Gem::Version.new(Faraday::VERSION) > Gem::Version.new('1.0')
|
||||||
require 'faraday/logging/formatter'
|
require 'faraday/logging/formatter'
|
||||||
class OAuth2FaradayFormatter < Faraday::Logging::Formatter
|
class OAuth2FaradayFormatter < Faraday::Logging::Formatter
|
||||||
|
@ -119,7 +118,7 @@ class ::OAuth2BasicAuthenticator < Auth::ManagedAuthenticator
|
||||||
end
|
end
|
||||||
|
|
||||||
if SiteSetting.oauth2_debug_auth && defined? OAuth2FaradayFormatter
|
if SiteSetting.oauth2_debug_auth && defined? OAuth2FaradayFormatter
|
||||||
opts[:client_options][:connection_build] = lambda{ |builder|
|
opts[:client_options][:connection_build] = lambda { |builder|
|
||||||
builder.response :logger, Rails.logger, { bodies: true, formatter: OAuth2FaradayFormatter }
|
builder.response :logger, Rails.logger, { bodies: true, formatter: OAuth2FaradayFormatter }
|
||||||
|
|
||||||
# Default stack:
|
# Default stack:
|
||||||
|
|
Loading…
Reference in New Issue