From 90d0df12b2dff3273c8e866f235e265f950a8dd4 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Thu, 26 Sep 2024 20:12:57 +0300 Subject: [PATCH] DEV: Raise errors if verbose logging is enabled (#85) Some exceptions are caught and `nil` is returned instead. This can lead to some errors be silently ignored. --- lib/openid_connect_authenticator.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/openid_connect_authenticator.rb b/lib/openid_connect_authenticator.rb index 9496ca3..07dc15b 100644 --- a/lib/openid_connect_authenticator.rb +++ b/lib/openid_connect_authenticator.rb @@ -125,6 +125,10 @@ def register_middleware(omniauth) builder.request :url_encoded # form-encode POST params builder.adapter FinalDestination::FaradayAdapter # make requests with FinalDestination::HTTP end + + opts[:client_options][ + :raise_errors + ] = SiteSetting.openid_connect_verbose_logging } end