(
provider_name: &str,
token_endpoint: &str,
jwt_svid_audience: &str,
client_assertion_type: &str,
audience: &str,
scopes: &[String],
)
| 492 | } |
| 493 | |
| 494 | fn token_cache_key( |
| 495 | provider_name: &str, |
| 496 | token_endpoint: &str, |
| 497 | jwt_svid_audience: &str, |
| 498 | client_assertion_type: &str, |
| 499 | audience: &str, |
| 500 | scopes: &[String], |
| 501 | ) -> String { |
| 502 | format!( |
| 503 | "{}\t{}\t{}\t{}\t{}\t{}", |
| 504 | provider_name, |
| 505 | token_endpoint, |
| 506 | jwt_svid_audience, |
| 507 | client_assertion_type, |
| 508 | audience, |
| 509 | scopes.join(" ") |
| 510 | ) |
| 511 | } |
| 512 | |
| 513 | fn token_grant_failure_message(status: reqwest::StatusCode, body: &str) -> String { |
| 514 | let Ok(error_response) = serde_json::from_str::<OAuthErrorResponse>(body) else { |
no outgoing calls