demarches-normaliennes/config/initializers/open_id_connect.rb
simon lehericey c25a78f268 fix: force proxy usage if var available
Otherwise faraday call [find_proxy](https://rubyapi.org/3.3/o/uri/generic#method-i-find_proxy) to guess if a proxy is setup by env var. find_proxy check if the adress is local before calling the proxy by using a dns query which causes a timeout.
2024-03-14 10:07:29 +01:00

7 lines
141 B
Ruby

OpenIDConnect.http_config do |config|
config.response :jwt
if ENV['http_proxy'].present?
config.proxy = ENV['http_proxy']
end
end