Skip to content

Commit 82fb2cb

Browse files
authored
Merge pull request #1807 from saif-88/main
Fix oidc with openssl
2 parents 10b47f1 + 18efbfb commit 82fb2cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kube-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ hyper-timeout = { workspace = true, optional = true }
7373
tame-oauth = { workspace = true, features = ["gcp"], optional = true }
7474
secrecy = { workspace = true }
7575
tracing = { workspace = true, features = ["log"], optional = true }
76-
hyper-openssl = { workspace = true, features = ["client-legacy"], optional = true }
76+
hyper-openssl = { workspace = true, features = ["client-legacy", "tokio"], optional = true }
7777
form_urlencoded = { workspace = true, optional = true }
7878
k8s-openapi= { workspace = true, features = [] }
7979

kube-client/src/client/auth/oidc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ compile_error!(
267267
#[cfg(feature = "rustls-tls")]
268268
type HttpsConnector = hyper_rustls::HttpsConnector<HttpConnector>;
269269
#[cfg(all(not(feature = "rustls-tls"), feature = "openssl-tls"))]
270-
type HttpsConnector = hyper_openssl::HttpsConnector<HttpConnector>;
270+
type HttpsConnector = hyper_openssl::client::legacy::HttpsConnector<HttpConnector>;
271271

272272
/// Struct for refreshing the ID token with the refresh token.
273273
#[derive(Debug)]
@@ -334,7 +334,7 @@ impl Refresher {
334334
.enable_http1()
335335
.build();
336336
#[cfg(all(not(feature = "rustls-tls"), feature = "openssl-tls"))]
337-
let https = hyper_openssl::HttpsConnector::new()?;
337+
let https = hyper_openssl::client::legacy::HttpsConnector::new()?;
338338

339339
let https_client = hyper_util::client::legacy::Client::builder(TokioExecutor::new()).build(https);
340340

0 commit comments

Comments
 (0)