fusionauth_rust_client/models/
samlv2_identity_provider.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Samlv2IdentityProvider {
17 #[serde(rename = "domains", skip_serializing_if = "Option::is_none")]
18 pub domains: Option<Vec<serde_json::Value>>,
19 #[serde(rename = "assertionConfiguration", skip_serializing_if = "Option::is_none")]
20 pub assertion_configuration: Option<Box<models::Samlv2AssertionConfiguration>>,
21 #[serde(rename = "buttonImageURL", skip_serializing_if = "Option::is_none")]
22 pub button_image_url: Option<String>,
23 #[serde(rename = "buttonText", skip_serializing_if = "Option::is_none")]
24 pub button_text: Option<String>,
25 #[serde(rename = "idpEndpoint", skip_serializing_if = "Option::is_none")]
26 pub idp_endpoint: Option<String>,
27 #[serde(rename = "idpInitiatedConfiguration", skip_serializing_if = "Option::is_none")]
28 pub idp_initiated_configuration: Option<Box<models::Samlv2IdpInitiatedConfiguration>>,
29 #[serde(rename = "issuer", skip_serializing_if = "Option::is_none")]
30 pub issuer: Option<String>,
31 #[serde(rename = "loginHintConfiguration", skip_serializing_if = "Option::is_none")]
32 pub login_hint_configuration: Option<Box<models::LoginHintConfiguration>>,
33 #[serde(rename = "nameIdFormat", skip_serializing_if = "Option::is_none")]
34 pub name_id_format: Option<String>,
35 #[serde(rename = "postRequest", skip_serializing_if = "Option::is_none")]
36 pub post_request: Option<bool>,
37 #[serde(rename = "requestSigningKeyId", skip_serializing_if = "Option::is_none")]
38 pub request_signing_key_id: Option<uuid::Uuid>,
39 #[serde(rename = "signRequest", skip_serializing_if = "Option::is_none")]
40 pub sign_request: Option<bool>,
41 #[serde(rename = "xmlSignatureC14nMethod", skip_serializing_if = "Option::is_none")]
42 pub xml_signature_c14n_method: Option<models::CanonicalizationMethod>,
43 #[serde(rename = "assertionDecryptionConfiguration", skip_serializing_if = "Option::is_none")]
44 pub assertion_decryption_configuration: Option<Box<models::Samlv2AssertionDecryptionConfiguration>>,
45 #[serde(rename = "emailClaim", skip_serializing_if = "Option::is_none")]
46 pub email_claim: Option<String>,
47 #[serde(rename = "keyId", skip_serializing_if = "Option::is_none")]
48 pub key_id: Option<uuid::Uuid>,
49 #[serde(rename = "uniqueIdClaim", skip_serializing_if = "Option::is_none")]
50 pub unique_id_claim: Option<String>,
51 #[serde(rename = "useNameIdForEmail", skip_serializing_if = "Option::is_none")]
52 pub use_name_id_for_email: Option<bool>,
53 #[serde(rename = "usernameClaim", skip_serializing_if = "Option::is_none")]
54 pub username_claim: Option<String>,
55}
56
57impl Samlv2IdentityProvider {
58 pub fn new() -> Samlv2IdentityProvider {
60 Samlv2IdentityProvider {
61 domains: None,
62 assertion_configuration: None,
63 button_image_url: None,
64 button_text: None,
65 idp_endpoint: None,
66 idp_initiated_configuration: None,
67 issuer: None,
68 login_hint_configuration: None,
69 name_id_format: None,
70 post_request: None,
71 request_signing_key_id: None,
72 sign_request: None,
73 xml_signature_c14n_method: None,
74 assertion_decryption_configuration: None,
75 email_claim: None,
76 key_id: None,
77 unique_id_claim: None,
78 use_name_id_for_email: None,
79 username_claim: None,
80 }
81 }
82}
83