@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "casSamlIdPAuditTrailRecordResolutionPlanConfigurer")
        public AuditTrailRecordResolutionPlanConfigurer casSamlIdPAuditTrailRecordResolutionPlanConfigurer(
            @Qualifier("samlMetadataResolutionAuditResourceResolver")
            final AuditResourceResolver samlMetadataResolutionAuditResourceResolver,
            @Qualifier("samlResponseAuditActionResolver")
            final AuditActionResolver samlResponseAuditActionResolver,
            @Qualifier("samlRequestAuditActionResolver")
            final AuditActionResolver samlRequestAuditActionResolver,
            @Qualifier("samlResponseAuditResourceResolver")
            final AuditResourceResolver samlResponseAuditResourceResolver,
            @Qualifier("samlRequestAuditResourceResolver")
            final AuditResourceResolver samlRequestAuditResourceResolver,
            @Qualifier("samlMetadataResolutionAuditActionResolver")
            final AuditActionResolver samlMetadataResolutionAuditActionResolver) {
            return plan -> {
                plan.registerAuditResourceResolver(AuditResourceResolvers.SAML2_RESPONSE_RESOURCE_RESOLVER, samlResponseAuditResourceResolver);
                plan.registerAuditActionResolver(AuditActionResolvers.SAML2_RESPONSE_ACTION_RESOLVER, samlResponseAuditActionResolver);

                plan.registerAuditResourceResolver(AuditResourceResolvers.SAML2_REQUEST_RESOURCE_RESOLVER, samlRequestAuditResourceResolver);
                plan.registerAuditActionResolver(AuditActionResolvers.SAML2_REQUEST_ACTION_RESOLVER, samlRequestAuditActionResolver);

                plan.registerAuditResourceResolver(AuditResourceResolvers.SAML2_METADATA_RESOLUTION_RESOURCE_RESOLVER, samlMetadataResolutionAuditResourceResolver);
                plan.registerAuditActionResolver(AuditActionResolvers.SAML2_METADATA_RESOLUTION_ACTION_RESOLVER, samlMetadataResolutionAuditActionResolver);
            };
        }
The {@link SamlIdPConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-saml-idp/src/main/java/org/apereo/cas/config/SamlIdPConfiguration.java