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

Function required_scope

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

Source from the content-addressed store, hash-verified

77/// apply (`unauthenticated`, `sandbox`).
78#[must_use]
79pub fn required_scope(method: &str) -> Option<&'static str> {
80 lookup(method).and_then(|m| m.scope)
81}
82
83/// Required role for the method on the Bearer path.
84#[must_use]

Callers 1

check_scopeMethod · 0.85

Calls 1

lookupFunction · 0.85

Tested by

no test coverage detected