Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 90d0df1

Browse files
authored
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.
1 parent a441566 commit 90d0df1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/openid_connect_authenticator.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ def register_middleware(omniauth)
125125
builder.request :url_encoded # form-encode POST params
126126
builder.adapter FinalDestination::FaradayAdapter # make requests with FinalDestination::HTTP
127127
end
128+
129+
opts[:client_options][
130+
:raise_errors
131+
] = SiteSetting.openid_connect_verbose_logging
128132
}
129133
end
130134

0 commit comments

Comments
 (0)