headless_lms_server/domain/oauth/
consent_query.rs1use super::resource_indicator::ResourceIndicator;
2use crate::prelude::*;
3use utoipa::ToSchema;
4
5#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, ToSchema)]
6
7pub struct ConsentQuery {
8 pub client_id: String,
9 pub redirect_uri: String,
10 pub response_type: String,
11 pub scope: String,
12 pub state: String,
13 pub nonce: String,
14 #[serde(default)]
15 pub code_challenge: Option<String>,
16 #[serde(default)]
17 pub code_challenge_method: Option<String>,
18 #[serde(default)]
20 #[schema(value_type = Option<String>)]
21 pub resource: Option<ResourceIndicator>,
22}