Skip to content

Commit

Permalink
DEV: Raise errors if verbose logging is enabled (#85)
Browse files Browse the repository at this point in the history
Some exceptions are caught and `nil` is returned instead. This can lead
to some errors be silently ignored.
  • Loading branch information
nbianca authored Sep 26, 2024
1 parent a441566 commit 90d0df1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/openid_connect_authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 90d0df1

Please sign in to comment.