com.mantledillusion.metrics.trail.TrailMetricsSecurityAutoConfiguration Maven / Gradle / Ivy
package com.mantledillusion.metrics.trail;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Spring Boot auto configuration registering the following {@link org.springframework.context.ApplicationListener}s:
* - {@link TrailMetricsSecurityAuthenticationFailureListener}
* - {@link TrailMetricsSecurityAuthenticationSuccessListener}
* - {@link TrailMetricsSecurityAuthenticationInteractiveSuccessListener}
* - {@link TrailMetricsSecurityAuthenticationClosureListener}
*/
@Configuration
@AutoConfigureAfter(SecurityAutoConfiguration.class)
public class TrailMetricsSecurityAutoConfiguration {
@Bean
public TrailMetricsSecurityAuthenticationFailureListener authenticationFailureMetricsListener() {
return new TrailMetricsSecurityAuthenticationFailureListener();
}
@Bean
public TrailMetricsSecurityAuthenticationSuccessListener authenticationSuccessMetricsListener() {
return new TrailMetricsSecurityAuthenticationSuccessListener();
}
@Bean
public TrailMetricsSecurityAuthenticationInteractiveSuccessListener authenticationInteractiveSuccessListener() {
return new TrailMetricsSecurityAuthenticationInteractiveSuccessListener();
}
@Bean
public TrailMetricsSecurityAuthenticationClosureListener authenticationClosureMetricsListener() {
return new TrailMetricsSecurityAuthenticationClosureListener();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy