pub struct AuthInput<'a> {
pub authorization_header: Option<&'a str>,
pub sasl_plain_blob: Option<&'a [u8]>,
pub mtls_subject: Option<AuthSubject>,
}Expand description
What the caller (daemon) supplies for validate.
Fields§
Bearer/JWT: content of the Authorization header (complete).
sasl_plain_blob: Option<&'a [u8]>SASL-PLAIN: raw frame bytes (user\0user\0pass).
mtls_subject: Option<AuthSubject>mTLS: subject already validated by the rustls connection (e.g.
cert CN). If mTLS but no cert was presented: None.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AuthInput<'a>
impl<'a> RefUnwindSafe for AuthInput<'a>
impl<'a> Send for AuthInput<'a>
impl<'a> Sync for AuthInput<'a>
impl<'a> Unpin for AuthInput<'a>
impl<'a> UnsafeUnpin for AuthInput<'a>
impl<'a> UnwindSafe for AuthInput<'a>
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