pub enum AuthStrategy {
StaticBearer(String),
Passthrough,
Validate(String),
Strip,
}Expand description
Strategy for handling authentication tokens.
Variants§
StaticBearer(String)
Forward a static bearer token to upstream.
Passthrough
Pass through the client’s Authorization header unchanged.
Validate(String)
Require a specific bearer token from the client; reject mismatches.
Strip
Strip the Authorization header before forwarding.
Auto Trait Implementations§
impl Freeze for AuthStrategy
impl RefUnwindSafe for AuthStrategy
impl Send for AuthStrategy
impl Sync for AuthStrategy
impl Unpin for AuthStrategy
impl UnsafeUnpin for AuthStrategy
impl UnwindSafe for AuthStrategy
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