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

Function user_principal

crates/openshell-server/src/supervisor_session.rs:876–886  ·  view source on GitHub ↗
(subject: &str)

Source from the content-addressed store, hash-verified

874 }
875
876 fn user_principal(subject: &str) -> Principal {
877 Principal::User(UserPrincipal {
878 identity: Identity {
879 subject: subject.to_string(),
880 display_name: None,
881 roles: vec![],
882 scopes: vec![],
883 provider: IdentityProvider::Oidc,
884 },
885 })
886 }
887
888 // ---- registry: register / remove ----
889

Callers 1

Calls

no outgoing calls

Tested by 1