pub struct UpstreamOauthStateRow {
pub upstream_name: String,
pub subject: String,
pub csrf_token: String,
pub pkce_verifier: String,
pub expected_issuer: Option<String>,
pub require_issuer: bool,
pub requested_scopes_json: 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§expected_issuer: Option<String>RFC 9207 issuer recorded when the authorization request was created.
require_issuer: boolWhether the authorization server advertised mandatory issuer responses.
requested_scopes_json: StringJSON-encoded scopes requested in this authorization round.
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