pub struct IdentityOnly;Expand description
Identity-only: forwards the caller’s IdP-verified user identity and drops roles, capabilities, and metadata.
Recommended default. The callee learns who invoked it (so it can
re-evaluate authorization against its own scopes per AUTHZ-S01
default-deny) without inheriting the caller’s authority. Fixes the
confused-deputy class for any callee that reads raw_ctx.
Mirror of: HTTP cookies + per-page server-side authorization.
Trait Implementations§
Source§impl Clone for IdentityOnly
impl Clone for IdentityOnly
Source§fn clone(&self) -> IdentityOnly
fn clone(&self) -> IdentityOnly
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 moreSource§impl Debug for IdentityOnly
impl Debug for IdentityOnly
Source§impl ForwardPolicy for IdentityOnly
impl ForwardPolicy for IdentityOnly
Source§fn name(&self) -> ForwardPolicyName
fn name(&self) -> ForwardPolicyName
Stable identifier for this policy. Used in audit records.
Source§fn forward(&self, _ctx: &AuthContext, _site: &CallSite) -> ForwardDerivation
fn forward(&self, _ctx: &AuthContext, _site: &CallSite) -> ForwardDerivation
Derive forwarding parameters for the callee. Read more
impl Copy for IdentityOnly
Auto Trait Implementations§
impl Freeze for IdentityOnly
impl RefUnwindSafe for IdentityOnly
impl Send for IdentityOnly
impl Sync for IdentityOnly
impl Unpin for IdentityOnly
impl UnsafeUnpin for IdentityOnly
impl UnwindSafe for IdentityOnly
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