Skip to content

Commit

Permalink
fix: Pass the trusted CA to the get call
Browse files Browse the repository at this point in the history
Signed-off-by: Asa Yeamans <[email protected]>
  • Loading branch information
asa-yeamans committed May 4, 2023
1 parent e36b900 commit 7c3e22c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filters/oidc/jwks_resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void DynamicJwksResolverImpl::JwksFetcher::request(
const boost::system::error_code&) {
boost::asio::spawn(ioc_, [this](boost::asio::yield_context yield) {
common::http::TransportSocketOptions opt;
opt.ca_cert_ = idp_config_.trusted_certificate_authority();
opt.verify_peer_ = verify_peer_cert_;
auto resp = http_ptr_->Get(jwks_uri_, {}, "", opt, "", ioc_, yield);
auto next_schedule_interval = periodic_fetch_interval_sec_;
Expand Down

0 comments on commit 7c3e22c

Please sign in to comment.