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

Function scoped_policy

crates/openshell-server/src/auth/authz.rs:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 }
142
143 fn scoped_policy() -> AuthzPolicy {
144 AuthzPolicy {
145 admin_role: "openshell-admin".to_string(),
146 user_role: "openshell-user".to_string(),
147 scopes_enabled: true,
148 }
149 }
150
151 fn identity_with_roles(roles: &[&str]) -> Identity {
152 Identity {

Calls

no outgoing calls