Skip to main content

PeerTenantResolver

Type Alias PeerTenantResolver 

Source
pub type PeerTenantResolver = Arc<dyn Fn(&PeerIdentity) -> Option<String> + Send + Sync>;
Expand description

Resolves the tenant for an independently authenticated application peer. Carrier NodeId is never passed here. Without a fresh-proof seam (#1027) the iroh accept path refuses before invoking this resolver; with a MoqlAdmissionAuthenticator installed, the resolver runs inside the admission exchange over the verified subject.

Aliased Typeยง

pub struct PeerTenantResolver { /* private fields */ }