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

Function user_principal

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

Source from the content-addressed store, hash-verified

1404 }
1405
1406 fn user_principal(subject: &str) -> Principal {
1407 Principal::User(UserPrincipal {
1408 identity: Identity {
1409 subject: subject.to_string(),
1410 display_name: None,
1411 roles: vec![],
1412 scopes: vec![],
1413 provider: IdentityProvider::Oidc,
1414 },
1415 })
1416 }
1417
1418 fn mtls_identity(subject: &str) -> Identity {
1419 Identity {

Calls

no outgoing calls

Tested by

no test coverage detected