headless_lms_server/domain/oauth/
consent_query.rs

1use crate::prelude::*;
2
3#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
4#[cfg_attr(feature = "ts_rs", derive(TS))]
5pub struct ConsentQuery {
6    pub client_id: String,
7    pub redirect_uri: String,
8    pub response_type: String,
9    pub scope: String,
10    pub state: String,
11    pub nonce: String,
12    #[serde(default)]
13    pub code_challenge: Option<String>,
14    #[serde(default)]
15    pub code_challenge_method: Option<String>,
16}