pub struct OAuthRequestState {
pub state: String,
pub nonce: String,
pub code_challenge: String,
pub scope: String,
}
Expand description
OAuth request state containing security parameters for the authorization flow.
This struct holds the security parameters needed to maintain state and prevent attacks during the OAuth authorization code flow.
Fields§
§state: String
Random state parameter to prevent CSRF attacks.
nonce: String
Random nonce value for additional security.
code_challenge: String
PKCE code challenge derived from the code verifier.
scope: String
The scope of access requested for the authorization.
Auto Trait Implementations§
impl Freeze for OAuthRequestState
impl RefUnwindSafe for OAuthRequestState
impl Send for OAuthRequestState
impl Sync for OAuthRequestState
impl Unpin for OAuthRequestState
impl UnwindSafe for OAuthRequestState
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