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

Method new

crates/openshell-server/src/auth/authenticator.rs:62–66  ·  view source on GitHub ↗

Build a chain from an ordered list of authenticators. Earlier entries are evaluated first.

(authenticators: Vec<Arc<dyn Authenticator>>)

Source from the content-addressed store, hash-verified

60 /// Build a chain from an ordered list of authenticators. Earlier
61 /// entries are evaluated first.
62 pub fn new(authenticators: Vec<Arc<dyn Authenticator>>) -> Self {
63 Self {
64 authenticators: Arc::from(authenticators),
65 }
66 }
67
68 /// Run the chain. Returns the first principal produced. If every
69 /// authenticator returns `Ok(None)`, the result is `Ok(None)` — the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected