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

Function run_show_principal

crates/openshell-supervisor-process/src/debug_rpc.rs:129–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129fn run_show_principal() -> Result<i32> {
130 let token = read_local_token()?;
131 let claims = decode_token_claims(&token)?;
132 println!(
133 "{}",
134 serde_json::to_string_pretty(&claims).into_diagnostic()?
135 );
136 Ok(0)
137}
138
139fn decode_token_claims(token: &str) -> Result<serde_json::Value> {
140 let payload_b64 = token

Callers 1

runFunction · 0.85

Calls 2

read_local_tokenFunction · 0.85
decode_token_claimsFunction · 0.85

Tested by

no test coverage detected