Search in sources :

Example 1 with DefaultAuditActionResolver

use of org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver in project cas by apereo.

the class CasRestConfiguration method configureAuditTrailRecordResolutionPlan.

@Override
public void configureAuditTrailRecordResolutionPlan(final AuditTrailRecordResolutionPlan plan) {
    plan.registerAuditActionResolver("REST_API_TICKET_GRANTING_TICKET_ACTION_RESOLVER", new DefaultAuditActionResolver("_CREATED", "_FAILED"));
    plan.registerAuditResourceResolver("REST_API_TICKET_GRANTING_TICKET_RESOURCE_RESOLVER", new RestResponseEntityAuditResourceResolver(false));
    plan.registerAuditActionResolver("REST_API_SERVICE_TICKET_ACTION_RESOLVER", new DefaultAuditActionResolver("_CREATED", "_FAILED"));
    plan.registerAuditResourceResolver("REST_API_SERVICE_TICKET_RESOURCE_RESOLVER", new RestResponseEntityAuditResourceResolver(true));
}
Also used : DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver) RestResponseEntityAuditResourceResolver(org.apereo.cas.rest.audit.RestResponseEntityAuditResourceResolver)

Example 2 with DefaultAuditActionResolver

use of org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver in project cas by apereo.

the class ElectronicFenceConfiguration method configureAuditTrailRecordResolutionPlan.

@Override
public void configureAuditTrailRecordResolutionPlan(final AuditTrailRecordResolutionPlan plan) {
    plan.registerAuditActionResolver("ADAPTIVE_RISKY_AUTHENTICATION_ACTION_RESOLVER", new DefaultAuditActionResolver());
    plan.registerAuditResourceResolver("ADAPTIVE_RISKY_AUTHENTICATION_RESOURCE_RESOLVER", returnValueResourceResolver);
}
Also used : DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver)

Example 3 with DefaultAuditActionResolver

use of org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver in project cas by apereo.

the class SamlIdPConfiguration method configureAuditTrailRecordResolutionPlan.

@Override
public void configureAuditTrailRecordResolutionPlan(final AuditTrailRecordResolutionPlan plan) {
    plan.registerAuditResourceResolver("SAML2_RESPONSE_RESOURCE_RESOLVER", new SamlResponseAuditResourceResolver());
    plan.registerAuditActionResolver("SAML2_RESPONSE_ACTION_RESOLVER", new DefaultAuditActionResolver("_CREATED", "_FAILED"));
    plan.registerAuditResourceResolver("SAML2_REQUEST_RESOURCE_RESOLVER", new SamlRequestAuditResourceResolver());
    plan.registerAuditActionResolver("SAML2_REQUEST_ACTION_RESOLVER", new DefaultAuditActionResolver("_CREATED", "_FAILED"));
}
Also used : DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver) SamlResponseAuditResourceResolver(org.apereo.cas.support.saml.web.idp.audit.SamlResponseAuditResourceResolver) SamlRequestAuditResourceResolver(org.apereo.cas.support.saml.web.idp.audit.SamlRequestAuditResourceResolver)

Example 4 with DefaultAuditActionResolver

use of org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver in project cas by apereo.

the class SurrogateAuthenticationAuditConfiguration method configureAuditTrailRecordResolutionPlan.

@Override
public void configureAuditTrailRecordResolutionPlan(final AuditTrailRecordResolutionPlan plan) {
    final AuditActionResolver actionResolver = new DefaultAuditActionResolver("_TRIGGERED", StringUtils.EMPTY);
    plan.registerAuditActionResolver("SURROGATE_AUTHENTICATION_ELIGIBILITY_VERIFICATION_ACTION_RESOLVER", actionResolver);
    plan.registerAuditResourceResolver("SURROGATE_AUTHENTICATION_ELIGIBILITY_VERIFICATION_RESOURCE_RESOLVER", surrogateEligibilityVerificationAuditResourceResolver());
}
Also used : AuditActionResolver(org.apereo.inspektr.audit.spi.AuditActionResolver) DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver) DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver)

Example 5 with DefaultAuditActionResolver

use of org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver in project cas by apereo.

the class CasCoreAuditConfiguration method auditActionResolverMap.

@Bean
public Map<String, AuditActionResolver> auditActionResolverMap() {
    final Map<String, AuditActionResolver> map = new HashMap<>();
    final AuditActionResolver resolver = authenticationActionResolver();
    map.put("AUTHENTICATION_RESOLVER", resolver);
    map.put("SAVE_SERVICE_ACTION_RESOLVER", resolver);
    map.put("CHANGE_PASSWORD_ACTION_RESOLVER", resolver);
    final AuditActionResolver defResolver = new DefaultAuditActionResolver();
    map.put("DESTROY_TICKET_GRANTING_TICKET_RESOLVER", defResolver);
    map.put("DESTROY_PROXY_GRANTING_TICKET_RESOLVER", defResolver);
    final AuditActionResolver cResolver = ticketCreationActionResolver();
    map.put("CREATE_PROXY_GRANTING_TICKET_RESOLVER", cResolver);
    map.put("GRANT_SERVICE_TICKET_RESOLVER", cResolver);
    map.put("GRANT_PROXY_TICKET_RESOLVER", cResolver);
    map.put("CREATE_TICKET_GRANTING_TICKET_RESOLVER", cResolver);
    map.put("TRUSTED_AUTHENTICATION_ACTION_RESOLVER", cResolver);
    map.put("AUTHENTICATION_EVENT_ACTION_RESOLVER", new DefaultAuditActionResolver("_TRIGGERED", ""));
    final AuditActionResolver adResolver = new DefaultAuditActionResolver();
    map.put("ADAPTIVE_RISKY_AUTHENTICATION_ACTION_RESOLVER", adResolver);
    map.put("VALIDATE_SERVICE_TICKET_RESOLVER", ticketValidationActionResolver());
    return map;
}
Also used : DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver) AuditActionResolver(org.apereo.inspektr.audit.spi.AuditActionResolver) HashMap(java.util.HashMap) DefaultAuditActionResolver(org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver) FilterRegistrationBean(org.springframework.boot.web.servlet.FilterRegistrationBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

DefaultAuditActionResolver (org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver)8 AuditActionResolver (org.apereo.inspektr.audit.spi.AuditActionResolver)3 HashMap (java.util.HashMap)1 lombok.val (lombok.val)1 CredentialsAsFirstParameterResourceResolver (org.apereo.cas.audit.spi.CredentialsAsFirstParameterResourceResolver)1 NullableReturnValueAuditResourceResolver (org.apereo.cas.audit.spi.NullableReturnValueAuditResourceResolver)1 ServiceAccessEnforcementAuditResourceResolver (org.apereo.cas.audit.spi.ServiceAccessEnforcementAuditResourceResolver)1 ServiceResourceResolver (org.apereo.cas.audit.spi.ServiceResourceResolver)1 RestResponseEntityAuditResourceResolver (org.apereo.cas.rest.audit.RestResponseEntityAuditResourceResolver)1 AccessTokenGrantRequestAuditResourceResolver (org.apereo.cas.support.oauth.web.audit.AccessTokenGrantRequestAuditResourceResolver)1 OAuth20UserProfileDataAuditResourceResolver (org.apereo.cas.support.oauth.web.audit.OAuth20UserProfileDataAuditResourceResolver)1 SamlRequestAuditResourceResolver (org.apereo.cas.support.saml.web.idp.audit.SamlRequestAuditResourceResolver)1 SamlResponseAuditResourceResolver (org.apereo.cas.support.saml.web.idp.audit.SamlResponseAuditResourceResolver)1 AuditResourceResolver (org.apereo.inspektr.audit.spi.AuditResourceResolver)1 ReturnValueAsStringResourceResolver (org.apereo.inspektr.audit.spi.support.ReturnValueAsStringResourceResolver)1 SpringWebflowActionExecutionAuditablePrincipalResolver (org.apereo.inspektr.audit.spi.support.SpringWebflowActionExecutionAuditablePrincipalResolver)1 Test (org.junit.jupiter.api.Test)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 FilterRegistrationBean (org.springframework.boot.web.servlet.FilterRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1