pub struct UpstreamOauthStateRow {
pub upstream_name: String,
pub subject: String,
pub csrf_token: String,
pub pkce_verifier: String,
pub created_at: i64,
pub expires_at: i64,
}Expand description
Short-lived upstream OAuth state row. Holds the CSRF token and PKCE verifier
between /authorize redirect and /callback redemption.
expires_at - created_at MUST NOT exceed 600 seconds. The persistence helper
rejects violations.
Debug is implemented manually with redaction — never derive it (pkce_verifier
is sensitive).
Fields§
§upstream_name: String§subject: String§csrf_token: String§pkce_verifier: String§created_at: i64§expires_at: i64Trait Implementations§
Source§impl Clone for UpstreamOauthStateRow
impl Clone for UpstreamOauthStateRow
Source§fn clone(&self) -> UpstreamOauthStateRow
fn clone(&self) -> UpstreamOauthStateRow
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 moreAuto Trait Implementations§
impl Freeze for UpstreamOauthStateRow
impl RefUnwindSafe for UpstreamOauthStateRow
impl Send for UpstreamOauthStateRow
impl Sync for UpstreamOauthStateRow
impl Unpin for UpstreamOauthStateRow
impl UnsafeUnpin for UpstreamOauthStateRow
impl UnwindSafe for UpstreamOauthStateRow
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