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

Function required_role

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

Source from the content-addressed store, hash-verified

83/// Required role for the method on the Bearer path.
84#[must_use]
85pub fn required_role(method: &str) -> Option<Role> {
86 lookup(method).and_then(|m| m.role)
87}
88
89/// `true` if the method bypasses authentication entirely.
90///

Callers 1

checkMethod · 0.85

Calls 1

lookupFunction · 0.85

Tested by

no test coverage detected