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

Function mtls_identity

crates/openshell-server/src/multiplex.rs:1418–1426  ·  view source on GitHub ↗
(subject: &str)

Source from the content-addressed store, hash-verified

1416 }
1417
1418 fn mtls_identity(subject: &str) -> Identity {
1419 Identity {
1420 subject: subject.to_string(),
1421 display_name: Some(subject.to_string()),
1422 roles: vec!["openshell-user".to_string()],
1423 scopes: vec![],
1424 provider: IdentityProvider::Mtls,
1425 }
1426 }
1427
1428 fn sandbox_principal() -> Principal {
1429 Principal::Sandbox(SandboxPrincipal {

Calls

no outgoing calls

Tested by

no test coverage detected