(client: &Client, registry: &str, repo: &str)
| 326 | } |
| 327 | |
| 328 | async fn fetch_token(client: &Client, registry: &str, repo: &str) -> Result<String> { |
| 329 | try_fetch_token(client, registry, repo) |
| 330 | .await |
| 331 | .context("registry requires authentication but token exchange failed") |
| 332 | } |
| 333 | |
| 334 | /// Extract realm and service from a WWW-Authenticate: Bearer header. |
| 335 | fn parse_www_authenticate(header: &str) -> (String, String) { |
no test coverage detected