Skip to main content

authentik_client/models/
radius_outpost_config.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RadiusOutpostConfig : RadiusProvider Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RadiusOutpostConfig {
17    #[serde(rename = "pk")]
18    pub pk: i32,
19    #[serde(rename = "name")]
20    pub name: String,
21    #[serde(rename = "application_slug")]
22    pub application_slug: String,
23    #[serde(rename = "auth_flow_slug")]
24    pub auth_flow_slug: String,
25    /// List of CIDRs (comma-separated) that clients can connect from. A more specific CIDR will match before a looser one. Clients connecting from a non-specified CIDR will be dropped.
26    #[serde(rename = "client_networks", skip_serializing_if = "Option::is_none")]
27    pub client_networks: Option<String>,
28    /// Shared secret between clients and server to hash packets.
29    #[serde(rename = "shared_secret", skip_serializing_if = "Option::is_none")]
30    pub shared_secret: Option<String>,
31    /// When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
32    #[serde(rename = "mfa_support", skip_serializing_if = "Option::is_none")]
33    pub mfa_support: Option<bool>,
34    #[serde(
35        rename = "certificate",
36        default,
37        with = "::serde_with::rust::double_option",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub certificate: Option<Option<uuid::Uuid>>,
41}
42
43impl RadiusOutpostConfig {
44    /// RadiusProvider Serializer
45    pub fn new(pk: i32, name: String, application_slug: String, auth_flow_slug: String) -> RadiusOutpostConfig {
46        RadiusOutpostConfig {
47            pk,
48            name,
49            application_slug,
50            auth_flow_slug,
51            client_networks: None,
52            shared_secret: None,
53            mfa_support: None,
54            certificate: None,
55        }
56    }
57}