headless_lms_server/domain/oauth/
consent_query.rs

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