1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AppEnum {
17 #[serde(rename = "authentik.tenants")]
18 Tenants,
19 #[serde(rename = "authentik.admin")]
20 Admin,
21 #[serde(rename = "authentik.api")]
22 Api,
23 #[serde(rename = "authentik.crypto")]
24 Crypto,
25 #[serde(rename = "authentik.flows")]
26 Flows,
27 #[serde(rename = "authentik.outposts")]
28 Outposts,
29 #[serde(rename = "authentik.policies.dummy")]
30 PoliciesPeriodDummy,
31 #[serde(rename = "authentik.policies.event_matcher")]
32 PoliciesPeriodEventMatcher,
33 #[serde(rename = "authentik.policies.expiry")]
34 PoliciesPeriodExpiry,
35 #[serde(rename = "authentik.policies.expression")]
36 PoliciesPeriodExpression,
37 #[serde(rename = "authentik.policies.password")]
38 PoliciesPeriodPassword,
39 #[serde(rename = "authentik.policies.reputation")]
40 PoliciesPeriodReputation,
41 #[serde(rename = "authentik.policies")]
42 Policies,
43 #[serde(rename = "authentik.providers.ldap")]
44 ProvidersPeriodLdap,
45 #[serde(rename = "authentik.providers.oauth2")]
46 ProvidersPeriodOauth2,
47 #[serde(rename = "authentik.providers.proxy")]
48 ProvidersPeriodProxy,
49 #[serde(rename = "authentik.providers.radius")]
50 ProvidersPeriodRadius,
51 #[serde(rename = "authentik.providers.saml")]
52 ProvidersPeriodSaml,
53 #[serde(rename = "authentik.providers.scim")]
54 ProvidersPeriodScim,
55 #[serde(rename = "authentik.rbac")]
56 Rbac,
57 #[serde(rename = "authentik.recovery")]
58 Recovery,
59 #[serde(rename = "authentik.sources.ldap")]
60 SourcesPeriodLdap,
61 #[serde(rename = "authentik.sources.oauth")]
62 SourcesPeriodOauth,
63 #[serde(rename = "authentik.sources.plex")]
64 SourcesPeriodPlex,
65 #[serde(rename = "authentik.sources.saml")]
66 SourcesPeriodSaml,
67 #[serde(rename = "authentik.stages.authenticator")]
68 StagesPeriodAuthenticator,
69 #[serde(rename = "authentik.stages.authenticator_duo")]
70 StagesPeriodAuthenticatorDuo,
71 #[serde(rename = "authentik.stages.authenticator_sms")]
72 StagesPeriodAuthenticatorSms,
73 #[serde(rename = "authentik.stages.authenticator_static")]
74 StagesPeriodAuthenticatorStatic,
75 #[serde(rename = "authentik.stages.authenticator_totp")]
76 StagesPeriodAuthenticatorTotp,
77 #[serde(rename = "authentik.stages.authenticator_validate")]
78 StagesPeriodAuthenticatorValidate,
79 #[serde(rename = "authentik.stages.authenticator_webauthn")]
80 StagesPeriodAuthenticatorWebauthn,
81 #[serde(rename = "authentik.stages.captcha")]
82 StagesPeriodCaptcha,
83 #[serde(rename = "authentik.stages.consent")]
84 StagesPeriodConsent,
85 #[serde(rename = "authentik.stages.deny")]
86 StagesPeriodDeny,
87 #[serde(rename = "authentik.stages.dummy")]
88 StagesPeriodDummy,
89 #[serde(rename = "authentik.stages.email")]
90 StagesPeriodEmail,
91 #[serde(rename = "authentik.stages.identification")]
92 StagesPeriodIdentification,
93 #[serde(rename = "authentik.stages.invitation")]
94 StagesPeriodInvitation,
95 #[serde(rename = "authentik.stages.password")]
96 StagesPeriodPassword,
97 #[serde(rename = "authentik.stages.prompt")]
98 StagesPeriodPrompt,
99 #[serde(rename = "authentik.stages.user_delete")]
100 StagesPeriodUserDelete,
101 #[serde(rename = "authentik.stages.user_login")]
102 StagesPeriodUserLogin,
103 #[serde(rename = "authentik.stages.user_logout")]
104 StagesPeriodUserLogout,
105 #[serde(rename = "authentik.stages.user_write")]
106 StagesPeriodUserWrite,
107 #[serde(rename = "authentik.brands")]
108 Brands,
109 #[serde(rename = "authentik.blueprints")]
110 Blueprints,
111 #[serde(rename = "authentik.core")]
112 Core,
113 #[serde(rename = "authentik.enterprise")]
114 Enterprise,
115 #[serde(rename = "authentik.enterprise.audit")]
116 EnterprisePeriodAudit,
117 #[serde(rename = "authentik.enterprise.providers.rac")]
118 EnterprisePeriodProvidersPeriodRac,
119 #[serde(rename = "authentik.events")]
120 Events,
121
122}
123
124impl ToString for AppEnum {
125 fn to_string(&self) -> String {
126 match self {
127 Self::Tenants => String::from("authentik.tenants"),
128 Self::Admin => String::from("authentik.admin"),
129 Self::Api => String::from("authentik.api"),
130 Self::Crypto => String::from("authentik.crypto"),
131 Self::Flows => String::from("authentik.flows"),
132 Self::Outposts => String::from("authentik.outposts"),
133 Self::PoliciesPeriodDummy => String::from("authentik.policies.dummy"),
134 Self::PoliciesPeriodEventMatcher => String::from("authentik.policies.event_matcher"),
135 Self::PoliciesPeriodExpiry => String::from("authentik.policies.expiry"),
136 Self::PoliciesPeriodExpression => String::from("authentik.policies.expression"),
137 Self::PoliciesPeriodPassword => String::from("authentik.policies.password"),
138 Self::PoliciesPeriodReputation => String::from("authentik.policies.reputation"),
139 Self::Policies => String::from("authentik.policies"),
140 Self::ProvidersPeriodLdap => String::from("authentik.providers.ldap"),
141 Self::ProvidersPeriodOauth2 => String::from("authentik.providers.oauth2"),
142 Self::ProvidersPeriodProxy => String::from("authentik.providers.proxy"),
143 Self::ProvidersPeriodRadius => String::from("authentik.providers.radius"),
144 Self::ProvidersPeriodSaml => String::from("authentik.providers.saml"),
145 Self::ProvidersPeriodScim => String::from("authentik.providers.scim"),
146 Self::Rbac => String::from("authentik.rbac"),
147 Self::Recovery => String::from("authentik.recovery"),
148 Self::SourcesPeriodLdap => String::from("authentik.sources.ldap"),
149 Self::SourcesPeriodOauth => String::from("authentik.sources.oauth"),
150 Self::SourcesPeriodPlex => String::from("authentik.sources.plex"),
151 Self::SourcesPeriodSaml => String::from("authentik.sources.saml"),
152 Self::StagesPeriodAuthenticator => String::from("authentik.stages.authenticator"),
153 Self::StagesPeriodAuthenticatorDuo => String::from("authentik.stages.authenticator_duo"),
154 Self::StagesPeriodAuthenticatorSms => String::from("authentik.stages.authenticator_sms"),
155 Self::StagesPeriodAuthenticatorStatic => String::from("authentik.stages.authenticator_static"),
156 Self::StagesPeriodAuthenticatorTotp => String::from("authentik.stages.authenticator_totp"),
157 Self::StagesPeriodAuthenticatorValidate => String::from("authentik.stages.authenticator_validate"),
158 Self::StagesPeriodAuthenticatorWebauthn => String::from("authentik.stages.authenticator_webauthn"),
159 Self::StagesPeriodCaptcha => String::from("authentik.stages.captcha"),
160 Self::StagesPeriodConsent => String::from("authentik.stages.consent"),
161 Self::StagesPeriodDeny => String::from("authentik.stages.deny"),
162 Self::StagesPeriodDummy => String::from("authentik.stages.dummy"),
163 Self::StagesPeriodEmail => String::from("authentik.stages.email"),
164 Self::StagesPeriodIdentification => String::from("authentik.stages.identification"),
165 Self::StagesPeriodInvitation => String::from("authentik.stages.invitation"),
166 Self::StagesPeriodPassword => String::from("authentik.stages.password"),
167 Self::StagesPeriodPrompt => String::from("authentik.stages.prompt"),
168 Self::StagesPeriodUserDelete => String::from("authentik.stages.user_delete"),
169 Self::StagesPeriodUserLogin => String::from("authentik.stages.user_login"),
170 Self::StagesPeriodUserLogout => String::from("authentik.stages.user_logout"),
171 Self::StagesPeriodUserWrite => String::from("authentik.stages.user_write"),
172 Self::Brands => String::from("authentik.brands"),
173 Self::Blueprints => String::from("authentik.blueprints"),
174 Self::Core => String::from("authentik.core"),
175 Self::Enterprise => String::from("authentik.enterprise"),
176 Self::EnterprisePeriodAudit => String::from("authentik.enterprise.audit"),
177 Self::EnterprisePeriodProvidersPeriodRac => String::from("authentik.enterprise.providers.rac"),
178 Self::Events => String::from("authentik.events"),
179 }
180 }
181}
182
183impl Default for AppEnum {
184 fn default() -> AppEnum {
185 Self::Tenants
186 }
187}
188