The smokesignal.events web application
1pub mod model {
2 use chrono::{DateTime, Utc};
3 use serde::Deserialize;
4 use sqlx::FromRow;
5
6 /// OAuth request state stored during the OAuth flow.
7 /// Used for PKCE verification and nonce validation.
8 #[derive(Clone, FromRow, Deserialize)]
9 pub struct OAuthRequest {
10 pub oauth_state: String,
11 pub issuer: String,
12 pub did: String,
13 pub nonce: String,
14 pub pkce_verifier: String,
15 pub secret_jwk_id: String,
16 pub destination: Option<String>,
17 pub dpop_jwk: String,
18 pub created_at: DateTime<Utc>,
19 pub expires_at: DateTime<Utc>,
20 }
21}