pub struct FederationIntake { /* private fields */ }Expand description
Resolve and project foreign identities without granting local authority.
Implementations§
Source§impl FederationIntake
impl FederationIntake
Sourcepub fn new(
resolver: Arc<dyn FederatedDidDocumentResolver>,
inventory: Arc<dyn IdentityInventoryReadModel>,
local_issuers: Vec<String>,
) -> Self
pub fn new( resolver: Arc<dyn FederatedDidDocumentResolver>, inventory: Arc<dyn IdentityInventoryReadModel>, local_issuers: Vec<String>, ) -> Self
Construct an intake service over a resolver and derived inventory sink.
Sourcepub async fn intake(&self, did: &str) -> Result<InventoryEntry>
pub async fn intake(&self, did: &str) -> Result<InventoryEntry>
Resolve and index a foreign DID discovered without identity claims.
Sourcepub async fn intake_with_verified_claims(
&self,
did: &str,
claims: Claims,
) -> Result<InventoryEntry>
pub async fn intake_with_verified_claims( &self, did: &str, claims: Claims, ) -> Result<InventoryEntry>
Resolve and index a foreign DID carrying already-verified source claims.
These claims describe the foreign identity, not the local caller
requesting discovery. A local issuer is rejected because it is not a
federated source. For a foreign issuer, strip_federated_tenant runs
before projection so even a signed tenant assertion cannot become a
local hosted-account binding.
Sourcepub async fn resolve(
&self,
did: &str,
viewer: Option<&SecurityContext>,
) -> Result<ResolvedDiscovery>
pub async fn resolve( &self, did: &str, viewer: Option<&SecurityContext>, ) -> Result<ResolvedDiscovery>
Resolve current connect-time discovery for a visible inventory entry.
The inventory lookup happens before resolver I/O. Missing, no-clearance, and above-clearance identities all return the same 404-style error.
Auto Trait Implementations§
impl Freeze for FederationIntake
impl !RefUnwindSafe for FederationIntake
impl Send for FederationIntake
impl Sync for FederationIntake
impl Unpin for FederationIntake
impl UnsafeUnpin for FederationIntake
impl !UnwindSafe for FederationIntake
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more