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

Enum AuthMode

crates/openshell-server/src/auth/method_authz.rs:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29/// How a gRPC method is authenticated.
30#[derive(Debug, Clone, Copy, PartialEq, Eq)]
31pub enum AuthMode {
32 /// No authentication required (e.g. health probes).
33 Unauthenticated,
34 /// Only callable by a `Principal::Sandbox` (gateway-minted sandbox JWT).
35 /// See `auth/sandbox_jwt.rs`.
36 Sandbox,
37 /// Bearer (OIDC) authentication required.
38 Bearer,
39 /// Either sandbox principal or Bearer; scope and role apply on
40 /// the Bearer path only.
41 Dual,
42}
43
44/// Coarse role mapping. Maps to the configured `admin_role` /
45/// `user_role` names at runtime.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected