1use crate::EntityId;
2use serde::{Deserialize, Serialize};
3
4#[allow(clippy::struct_excessive_bools)]
6#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7pub struct AuthIr {
8 pub enabled: bool,
9 pub user_entity: Option<EntityId>,
10 pub registration_enabled: bool,
11 pub password_reset_enabled: bool,
12 #[serde(default, skip_serializing_if = "std::ops::Not::not")]
13 pub oauth_enabled: bool,
14 #[serde(default, skip_serializing_if = "Vec::is_empty")]
15 pub oauth_providers: Vec<String>,
16 #[serde(default, skip_serializing_if = "Vec::is_empty")]
17 pub oauth_signup_disabled: Vec<String>,
18 pub roles: Vec<String>,
19 pub default_role: Option<String>,
20}