Search in sources :

Example 1 with RestResponseEntityAuditResourceResolver

use of org.apereo.cas.rest.audit.RestResponseEntityAuditResourceResolver 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)

Aggregations

RestResponseEntityAuditResourceResolver (org.apereo.cas.rest.audit.RestResponseEntityAuditResourceResolver)1 DefaultAuditActionResolver (org.apereo.inspektr.audit.spi.support.DefaultAuditActionResolver)1