pub struct SessionBlob {
pub session_id: String,
pub expires_at: String,
pub cookies: Vec<CookieJarEntry>,
pub headers: Vec<RequestHeader>,
pub local_storage: Vec<StorageEntry>,
pub session_storage: Vec<StorageEntry>,
pub bind_origin: Option<String>,
pub refresh_hint: Option<RefreshHint>,
}Expand description
Cleartext session material returned by vault/proxy-login/0.1 — the VTA performs the login at the third party, captures the resulting session credentials, and ships them in this shape.
Fields§
§session_id: StringMaintainer-assigned opaque id for this session — used by future
vault/session/{revoke, refresh}/0.1 tasks (post-M2B) to act on
the session without re-identifying it by content.
expires_at: StringRFC 3339. The consumer MUST discard the blob (cookies + headers) at this time even if the user hasn’t finished interacting.
Cookies the consumer injects into the bound origin’s cookie jar. Order is significant for sites that set multiple cookies with the same name on different paths.
headers: Vec<RequestHeader>HTTP request headers the consumer attaches to outbound requests
for the bound origin. Typically Authorization: Bearer … for
the SIOP / OAuth paths.
local_storage: Vec<StorageEntry>Optional localStorage entries to set on the origin (SPAs that store session material there rather than in cookies).
session_storage: Vec<StorageEntry>Optional sessionStorage entries to set on the origin.
bind_origin: Option<String>The web origin this session is for. Consumers MUST refuse to inject the session into any other origin.
refresh_hint: Option<RefreshHint>Refresh policy hint for the consumer.
Trait Implementations§
Source§impl Clone for SessionBlob
impl Clone for SessionBlob
Source§fn clone(&self) -> SessionBlob
fn clone(&self) -> SessionBlob
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionBlob
impl Debug for SessionBlob
Source§impl<'de> Deserialize<'de> for SessionBlob
impl<'de> Deserialize<'de> for SessionBlob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SessionBlob
impl RefUnwindSafe for SessionBlob
impl Send for SessionBlob
impl Sync for SessionBlob
impl Unpin for SessionBlob
impl UnsafeUnpin for SessionBlob
impl UnwindSafe for SessionBlob
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.