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

Function is_sandbox_callable

crates/openshell-server/src/auth/method_authz.rs:105–110  ·  view source on GitHub ↗
(method: &str)

Source from the content-addressed store, hash-verified

103/// (`sandbox` or `dual` auth mode).
104#[must_use]
105pub fn is_sandbox_callable(method: &str) -> bool {
106 matches!(
107 lookup(method).map(|m| m.mode),
108 Some(AuthMode::Sandbox | AuthMode::Dual)
109 )
110}
111
112/// `true` if the method is callable by a `Principal::User` (`bearer` or
113/// `dual` auth mode).

Callers 1

callMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected