MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / token_cache_key

Function token_cache_key

crates/openshell-supervisor-network/src/token_grant.rs:494–511  ·  view source on GitHub ↗
(
    provider_name: &str,
    token_endpoint: &str,
    jwt_svid_audience: &str,
    client_assertion_type: &str,
    audience: &str,
    scopes: &[String],
)

Source from the content-addressed store, hash-verified

492}
493
494fn 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
513fn token_grant_failure_message(status: reqwest::StatusCode, body: &str) -> String {
514 let Ok(error_response) = serde_json::from_str::<OAuthErrorResponse>(body) else {

Calls

no outgoing calls