Build the HTTP remote configuration. `identity_hint` — an explicit identity name to use (from `--identity`). When `None`, identity is inferred from the remote URL and the global config's server bindings.
(
&self,
remote_url: &str,
identity_hint: Option<&str>,
)
| 401 | /// When `None`, identity is inferred from the remote URL and the global |
| 402 | /// config's server bindings. |
| 403 | async fn build_remote_config( |
| 404 | &self, |
| 405 | remote_url: &str, |
| 406 | identity_hint: Option<&str>, |
| 407 | ) -> HttpRemoteConfig { |
| 408 | let config = HttpRemoteConfig::new() |
| 409 | .with_timeout(Duration::from_secs(self.timeout)) |
| 410 | .danger_accept_invalid_certs(self.insecure); |
| 411 | |
| 412 | crate::commands::auth::attach_identity(config, remote_url, identity_hint).await |
| 413 | } |
| 414 | |
| 415 | /// Display the dry run preview. |
| 416 | /// |