pub struct AuthCode {
pub code: String,
pub user_id: String,
pub client_id: String,
pub redirect_uri: String,
pub scopes: Vec<String>,
pub nonce: Option<String>,
pub code_challenge: Option<String>,
pub code_challenge_method: Option<String>,
pub expires_at: u64,
}Expand description
Minimal pending-authcode store. Pylon-issued auth codes are
random 32-byte tokens, single-use, 10-minute expiry. The stored
value carries the (user_id, client_id, redirect_uri, scopes, nonce, code_challenge?) tuple so /token can re-bind the
originating /authorize request.
Fields§
§code: String§user_id: String§client_id: String§redirect_uri: String§scopes: Vec<String>§nonce: Option<String>§code_challenge: Option<String>§code_challenge_method: Option<String>§expires_at: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthCode
impl RefUnwindSafe for AuthCode
impl Send for AuthCode
impl Sync for AuthCode
impl Unpin for AuthCode
impl UnsafeUnpin for AuthCode
impl UnwindSafe for AuthCode
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