AuthenticationHandlerAutoConfiguration

认证处理器自动配置

提供登录失败跟踪器以及统一的认证成功和失败处理器

Constructors

Link copied to clipboard
constructor()

Functions

@Bean
@ConditionalOnMissingBean
fun accessTokenResponseAuthenticationSuccessHandler(logRecorderProvider: ObjectProvider<AuthenticationLogRecorder>, authorizationServiceProvider: ObjectProvider<OAuth2AuthorizationService>, oauth2PropertiesProvider: ObjectProvider<Oauth2Properties>, jsonMapper: JsonMapper): OAuth2AccessTokenApiResultResponseAuthenticationSuccessHandler

创建访问令牌认证成功处理器

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun loginFailureTracker(oauth2PropertiesProvider: ObjectProvider<Oauth2Properties>): LoginFailureTracker

创建登录失败跟踪器

@Bean
@ConditionalOnMissingBean
fun oauth2ErrorApiResultAuthenticationFailureHandler(logRecorderProvider: ObjectProvider<AuthenticationLogRecorder>, oauth2PropertiesProvider: ObjectProvider<Oauth2Properties>, jsonMapper: JsonMapper): OAuth2ErrorApiResultAuthenticationFailureHandler

创建 OAuth2 认证失败处理器