Struct EventMatcherPolicyRequest

Source
pub struct EventMatcherPolicyRequest {
    pub name: String,
    pub execution_logging: Option<bool>,
    pub action: Option<Option<EventActions>>,
    pub client_ip: Option<Option<String>>,
    pub app: Option<Option<AppEnum>>,
    pub model: Option<Option<ModelEnum>>,
}
Expand description

EventMatcherPolicyRequest : Event Matcher Policy Serializer

Fields§

§name: String§execution_logging: Option<bool>

When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.

§action: Option<Option<EventActions>>

Match created events with this action type. When left empty, all action types will be matched. * login - Login * login_failed - Login Failed * logout - Logout * user_write - User Write * suspicious_request - Suspicious Request * password_set - Password Set * secret_view - Secret View * secret_rotate - Secret Rotate * invitation_used - Invite Used * authorize_application - Authorize Application * source_linked - Source Linked * impersonation_started - Impersonation Started * impersonation_ended - Impersonation Ended * flow_execution - Flow Execution * policy_execution - Policy Execution * policy_exception - Policy Exception * property_mapping_exception - Property Mapping Exception * system_task_execution - System Task Execution * system_task_exception - System Task Exception * system_exception - System Exception * configuration_error - Configuration Error * model_created - Model Created * model_updated - Model Updated * model_deleted - Model Deleted * email_sent - Email Sent * update_available - Update Available * custom_ - Custom Prefix

§client_ip: Option<Option<String>>

Matches Event’s Client IP (strict matching, for network matching use an Expression Policy)

§app: Option<Option<AppEnum>>

Match events created by selected application. When left empty, all applications are matched. * authentik.tenants - authentik Tenants * authentik.admin - authentik Admin * authentik.api - authentik API * authentik.crypto - authentik Crypto * authentik.flows - authentik Flows * authentik.outposts - authentik Outpost * authentik.policies.dummy - authentik Policies.Dummy * authentik.policies.event_matcher - authentik Policies.Event Matcher * authentik.policies.expiry - authentik Policies.Expiry * authentik.policies.expression - authentik Policies.Expression * authentik.policies.password - authentik Policies.Password * authentik.policies.reputation - authentik Policies.Reputation * authentik.policies - authentik Policies * authentik.providers.ldap - authentik Providers.LDAP * authentik.providers.oauth2 - authentik Providers.OAuth2 * authentik.providers.proxy - authentik Providers.Proxy * authentik.providers.radius - authentik Providers.Radius * authentik.providers.saml - authentik Providers.SAML * authentik.providers.scim - authentik Providers.SCIM * authentik.rbac - authentik RBAC * authentik.recovery - authentik Recovery * authentik.sources.ldap - authentik Sources.LDAP * authentik.sources.oauth - authentik Sources.OAuth * authentik.sources.plex - authentik Sources.Plex * authentik.sources.saml - authentik Sources.SAML * authentik.stages.authenticator - authentik Stages.Authenticator * authentik.stages.authenticator_duo - authentik Stages.Authenticator.Duo * authentik.stages.authenticator_sms - authentik Stages.Authenticator.SMS * authentik.stages.authenticator_static - authentik Stages.Authenticator.Static * authentik.stages.authenticator_totp - authentik Stages.Authenticator.TOTP * authentik.stages.authenticator_validate - authentik Stages.Authenticator.Validate * authentik.stages.authenticator_webauthn - authentik Stages.Authenticator.WebAuthn * authentik.stages.captcha - authentik Stages.Captcha * authentik.stages.consent - authentik Stages.Consent * authentik.stages.deny - authentik Stages.Deny * authentik.stages.dummy - authentik Stages.Dummy * authentik.stages.email - authentik Stages.Email * authentik.stages.identification - authentik Stages.Identification * authentik.stages.invitation - authentik Stages.User Invitation * authentik.stages.password - authentik Stages.Password * authentik.stages.prompt - authentik Stages.Prompt * authentik.stages.user_delete - authentik Stages.User Delete * authentik.stages.user_login - authentik Stages.User Login * authentik.stages.user_logout - authentik Stages.User Logout * authentik.stages.user_write - authentik Stages.User Write * authentik.brands - authentik Brands * authentik.blueprints - authentik Blueprints * authentik.core - authentik Core * authentik.enterprise - authentik Enterprise * authentik.enterprise.audit - authentik Enterprise.Audit * authentik.enterprise.providers.rac - authentik Enterprise.Providers.RAC * authentik.events - authentik Events

§model: Option<Option<ModelEnum>>

Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application’s models are matched. * authentik_tenants.domain - Domain * authentik_crypto.certificatekeypair - Certificate-Key Pair * authentik_flows.flow - Flow * authentik_flows.flowstagebinding - Flow Stage Binding * authentik_outposts.dockerserviceconnection - Docker Service-Connection * authentik_outposts.kubernetesserviceconnection - Kubernetes Service-Connection * authentik_outposts.outpost - Outpost * authentik_policies_dummy.dummypolicy - Dummy Policy * authentik_policies_event_matcher.eventmatcherpolicy - Event Matcher Policy * authentik_policies_expiry.passwordexpirypolicy - Password Expiry Policy * authentik_policies_expression.expressionpolicy - Expression Policy * authentik_policies_password.passwordpolicy - Password Policy * authentik_policies_reputation.reputationpolicy - Reputation Policy * authentik_policies.policybinding - Policy Binding * authentik_providers_ldap.ldapprovider - LDAP Provider * authentik_providers_oauth2.scopemapping - Scope Mapping * authentik_providers_oauth2.oauth2provider - OAuth2/OpenID Provider * authentik_providers_proxy.proxyprovider - Proxy Provider * authentik_providers_radius.radiusprovider - Radius Provider * authentik_providers_saml.samlprovider - SAML Provider * authentik_providers_saml.samlpropertymapping - SAML Property Mapping * authentik_providers_scim.scimprovider - SCIM Provider * authentik_providers_scim.scimmapping - SCIM Mapping * authentik_rbac.role - Role * authentik_sources_ldap.ldapsource - LDAP Source * authentik_sources_ldap.ldappropertymapping - LDAP Property Mapping * authentik_sources_oauth.oauthsource - OAuth Source * authentik_sources_oauth.useroauthsourceconnection - User OAuth Source Connection * authentik_sources_plex.plexsource - Plex Source * authentik_sources_plex.plexsourceconnection - User Plex Source Connection * authentik_sources_saml.samlsource - SAML Source * authentik_sources_saml.usersamlsourceconnection - User SAML Source Connection * authentik_stages_authenticator_duo.authenticatorduostage - Duo Authenticator Setup Stage * authentik_stages_authenticator_duo.duodevice - Duo Device * authentik_stages_authenticator_sms.authenticatorsmsstage - SMS Authenticator Setup Stage * authentik_stages_authenticator_sms.smsdevice - SMS Device * authentik_stages_authenticator_static.authenticatorstaticstage - Static Authenticator Setup Stage * authentik_stages_authenticator_static.staticdevice - Static Device * authentik_stages_authenticator_totp.authenticatortotpstage - TOTP Authenticator Setup Stage * authentik_stages_authenticator_totp.totpdevice - TOTP Device * authentik_stages_authenticator_validate.authenticatorvalidatestage - Authenticator Validation Stage * authentik_stages_authenticator_webauthn.authenticatewebauthnstage - WebAuthn Authenticator Setup Stage * authentik_stages_authenticator_webauthn.webauthndevice - WebAuthn Device * authentik_stages_captcha.captchastage - Captcha Stage * authentik_stages_consent.consentstage - Consent Stage * authentik_stages_consent.userconsent - User Consent * authentik_stages_deny.denystage - Deny Stage * authentik_stages_dummy.dummystage - Dummy Stage * authentik_stages_email.emailstage - Email Stage * authentik_stages_identification.identificationstage - Identification Stage * authentik_stages_invitation.invitationstage - Invitation Stage * authentik_stages_invitation.invitation - Invitation * authentik_stages_password.passwordstage - Password Stage * authentik_stages_prompt.prompt - Prompt * authentik_stages_prompt.promptstage - Prompt Stage * authentik_stages_user_delete.userdeletestage - User Delete Stage * authentik_stages_user_login.userloginstage - User Login Stage * authentik_stages_user_logout.userlogoutstage - User Logout Stage * authentik_stages_user_write.userwritestage - User Write Stage * authentik_brands.brand - Brand * authentik_blueprints.blueprintinstance - Blueprint Instance * authentik_core.group - Group * authentik_core.user - User * authentik_core.application - Application * authentik_core.token - Token * authentik_enterprise.license - License * authentik_providers_rac.racprovider - RAC Provider * authentik_providers_rac.endpoint - RAC Endpoint * authentik_providers_rac.racpropertymapping - RAC Property Mapping * authentik_events.event - Event * authentik_events.notificationtransport - Notification Transport * authentik_events.notification - Notification * authentik_events.notificationrule - Notification Rule * authentik_events.notificationwebhookmapping - Webhook Mapping

Implementations§

Source§

impl EventMatcherPolicyRequest

Source

pub fn new(name: String) -> EventMatcherPolicyRequest

Event Matcher Policy Serializer

Trait Implementations§

Source§

impl Clone for EventMatcherPolicyRequest

Source§

fn clone(&self) -> EventMatcherPolicyRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventMatcherPolicyRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EventMatcherPolicyRequest

Source§

fn default() -> EventMatcherPolicyRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EventMatcherPolicyRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for EventMatcherPolicyRequest

Source§

fn eq(&self, other: &EventMatcherPolicyRequest) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EventMatcherPolicyRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EventMatcherPolicyRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,