Skip to main content

authentik_client/models/
plex_authentication_challenge.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.0
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PlexAuthenticationChallenge : Challenge shown to the user in identification stage
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PlexAuthenticationChallenge {
17    #[serde(rename = "flow_info", skip_serializing_if = "Option::is_none")]
18    pub flow_info: Option<models::ContextualFlowInfo>,
19    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
20    pub component: Option<String>,
21    #[serde(rename = "response_errors", skip_serializing_if = "Option::is_none")]
22    pub response_errors: Option<std::collections::HashMap<String, Vec<models::ErrorDetail>>>,
23    #[serde(rename = "client_id")]
24    pub client_id: String,
25    #[serde(rename = "slug")]
26    pub slug: String,
27}
28
29impl PlexAuthenticationChallenge {
30    /// Challenge shown to the user in identification stage
31    pub fn new(client_id: String, slug: String) -> PlexAuthenticationChallenge {
32        PlexAuthenticationChallenge {
33            flow_info: None,
34            component: None,
35            response_errors: None,
36            client_id,
37            slug,
38        }
39    }
40}