| 29 | /// How a gRPC method is authenticated. |
| 30 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 31 | pub 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. |
nothing calls this directly
no outgoing calls
no test coverage detected