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

Function admin_user

crates/openshell-server/src/multiplex.rs:1632–1642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1630 #[tokio::test]
1631 async fn user_principal_is_denied_on_sandbox_only_methods() {
1632 fn admin_user() -> Principal {
1633 Principal::User(UserPrincipal {
1634 identity: Identity {
1635 subject: "admin".to_string(),
1636 display_name: None,
1637 roles: vec!["openshell-admin".to_string()],
1638 scopes: vec!["openshell:all".to_string()],
1639 provider: IdentityProvider::Oidc,
1640 },
1641 })
1642 }
1643
1644 let policy = AuthzPolicy {
1645 admin_role: "openshell-admin".to_string(),

Calls

no outgoing calls

Tested by

no test coverage detected