Enum lite_session::LiteSessionMode[][src]

pub enum LiteSessionMode {
    SessionID(String),
    Passive,
}

This describes which mode to use for the authentication/authorization. Use LiteSessionMode::Passive to bypass session ID pinning of the user session to the token. This is vulnerable to Denning-Sacco Attack

Use LiteSessionMode::SessionID(id) to pin the current user session ID to the token. This prevents Denning-Sacco Attack. An example of a sessionID is the Transport Layer Security(TLS) session key

Variants

SessionID(String)

SessionID of the transport protocol to be used as part of the mac

Passive

Ignores the transport protocol SessionID eg. TLS SessionID

Trait Implementations

impl Clone for LiteSessionMode[src]

impl Debug for LiteSessionMode[src]

impl Default for LiteSessionMode[src]

impl PartialEq<LiteSessionMode> for LiteSessionMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.