pub struct AuthContext {
pub actor_id: ActorId,
pub tenant_id: TenantId,
pub device_id: DeviceId,
}Expand description
Server-derived authenticated identity. Client claims must match it.
Fields§
§actor_id: ActorIdAuthenticated actor.
tenant_id: TenantIdAuthenticated tenant.
device_id: DeviceIdAuthenticated device.
Implementations§
Source§impl AuthContext
impl AuthContext
Sourcepub fn from_validated_security(
context: &ValidatedAuthContext,
) -> Result<Self, SecurityError>
pub fn from_validated_security( context: &ValidatedAuthContext, ) -> Result<Self, SecurityError>
Converts a policy-validated security identity into the mandatory sync identity.
This is the intended bridge from transport authentication into authoritative execution. A protected sync request cannot proceed without an active, server-validated device binding.
§Errors
Returns aequora_security::SecurityError::DeviceBindingRequired when the validated
authentication context does not bind an active device required by synchronization.
Trait Implementations§
Source§impl Clone for AuthContext
impl Clone for AuthContext
Source§fn clone(&self) -> AuthContext
fn clone(&self) -> AuthContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AuthContext
Source§impl Debug for AuthContext
impl Debug for AuthContext
impl Eq for AuthContext
Source§impl PartialEq for AuthContext
impl PartialEq for AuthContext
impl StructuralPartialEq for AuthContext
Auto Trait Implementations§
impl Freeze for AuthContext
impl RefUnwindSafe for AuthContext
impl Send for AuthContext
impl Sync for AuthContext
impl Unpin for AuthContext
impl UnsafeUnpin for AuthContext
impl UnwindSafe for AuthContext
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
Mutably borrows from an owned value. Read more