authentik_client/models/
authenticator_validation_challenge_response_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AuthenticatorValidationChallengeResponseRequest : Challenge used for Code-based and WebAuthn authenticators
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthenticatorValidationChallengeResponseRequest {
17    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
18    pub component: Option<String>,
19    #[serde(rename = "selected_challenge", skip_serializing_if = "Option::is_none")]
20    pub selected_challenge: Option<models::DeviceChallengeRequest>,
21    #[serde(rename = "selected_stage", skip_serializing_if = "Option::is_none")]
22    pub selected_stage: Option<String>,
23    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
24    pub code: Option<String>,
25    #[serde(rename = "webauthn", skip_serializing_if = "Option::is_none")]
26    pub webauthn: Option<std::collections::HashMap<String, serde_json::Value>>,
27    #[serde(rename = "duo", skip_serializing_if = "Option::is_none")]
28    pub duo: Option<i32>,
29}
30
31impl AuthenticatorValidationChallengeResponseRequest {
32    /// Challenge used for Code-based and WebAuthn authenticators
33    pub fn new() -> AuthenticatorValidationChallengeResponseRequest {
34        AuthenticatorValidationChallengeResponseRequest {
35            component: None,
36            selected_challenge: None,
37            selected_stage: None,
38            code: None,
39            webauthn: None,
40            duo: None,
41        }
42    }
43}