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

Method with_peer_identity

crates/openshell-server/src/multiplex.rs:499–515  ·  view source on GitHub ↗
(
        inner: S,
        authenticator_chain: Option<AuthenticatorChain>,
        authz_policy: Option<AuthzPolicy>,
        peer_identity: Option<Identity>,
        mtls_auth_enabled: bool,
      

Source from the content-addressed store, hash-verified

497 }
498
499 fn with_peer_identity(
500 inner: S,
501 authenticator_chain: Option<AuthenticatorChain>,
502 authz_policy: Option<AuthzPolicy>,
503 peer_identity: Option<Identity>,
504 mtls_auth_enabled: bool,
505 allow_unauthenticated_users: bool,
506 ) -> Self {
507 Self {
508 inner,
509 authenticator_chain,
510 authz_policy,
511 peer_identity,
512 mtls_auth_enabled,
513 allow_unauthenticated_users,
514 }
515 }
516}
517
518fn unauthenticated_dev_user_principal() -> Principal {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected