Class DefaultOAuth2AuthenticationEventPublisher
java.lang.Object
org.springframework.security.authentication.DefaultAuthenticationEventPublisher
cn.herodotus.engine.oauth2.authentication.response.DefaultOAuth2AuthenticationEventPublisher
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.security.authentication.AuthenticationEventPublisher
public class DefaultOAuth2AuthenticationEventPublisher
extends org.springframework.security.authentication.DefaultAuthenticationEventPublisher
Description: 扩展的 DefaultAuthenticationEventPublisher
支持 OAuth2AuthenticationException 解析
- Author:
- : gengwei.zheng
- Date:
- : 2022/7/9 13:47
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOAuth2AuthenticationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidpublishAuthenticationFailure(org.springframework.security.core.AuthenticationException exception, org.springframework.security.core.Authentication authentication) Methods inherited from class org.springframework.security.authentication.DefaultAuthenticationEventPublisher
publishAuthenticationSuccess, setAdditionalExceptionMappings, setAdditionalExceptionMappings, setApplicationEventPublisher, setDefaultAuthenticationFailureEvent
-
Constructor Details
-
DefaultOAuth2AuthenticationEventPublisher
public DefaultOAuth2AuthenticationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
-
-
Method Details
-
publishAuthenticationFailure
public void publishAuthenticationFailure(org.springframework.security.core.AuthenticationException exception, org.springframework.security.core.Authentication authentication) - Specified by:
publishAuthenticationFailurein interfaceorg.springframework.security.authentication.AuthenticationEventPublisher- Overrides:
publishAuthenticationFailurein classorg.springframework.security.authentication.DefaultAuthenticationEventPublisher
-