Skip to content

Commit

Permalink
Fixing WAAuditTrailManager to work with CAS Account Management
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Feb 21, 2025
1 parent f0b79d2 commit 0b6d2a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions fit/wa-reference/src/main/resources/wa-embedded.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
CasFeatureModule.AccountManagement.enabled=true

spring.main.allow-circular-references=true
spring.cloud.refresh.never-refreshable=com.zaxxer.hikari.HikariDataSource,org.apereo.cas.configuration.model.core.CasServerProperties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.syncope.common.lib.to.AuditEventTO;
Expand All @@ -46,7 +45,7 @@ protected void saveAuditRecord(final AuditActionContext audit) {
return;
}

LOG.info("Loading application definitions");
LOG.debug("Saving audit record {}", audit);
try {
String output = MAPPER.writeValueAsString(Map.of(
"resource", audit.getResourceOperatedUpon(),
Expand Down Expand Up @@ -74,11 +73,6 @@ protected void saveAuditRecord(final AuditActionContext audit) {
}
}

@Override
public List<? extends AuditActionContext> getAuditRecords(final Map<WhereClauseFields, Object> whereClause) {
throw new UnsupportedOperationException("Fetching audit events from WA is not supported");
}

@Override
public void removeAll() {
throw new UnsupportedOperationException("Removing audit events from WA is not supported");
Expand Down

0 comments on commit 0b6d2a0

Please sign in to comment.