Class OAuth2LoginAuthenticationWebFilter
- java.lang.Object
-
- org.springframework.security.web.server.authentication.AuthenticationWebFilter
-
- org.springframework.security.oauth2.client.web.server.authentication.OAuth2LoginAuthenticationWebFilter
-
- All Implemented Interfaces:
org.springframework.web.server.WebFilter
public class OAuth2LoginAuthenticationWebFilter extends org.springframework.security.web.server.authentication.AuthenticationWebFilterA specializedAuthenticationWebFilterthat converts from anOAuth2LoginAuthenticationTokento anOAuth2AuthenticationTokenand saves theOAuth2AuthorizedClient- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description OAuth2LoginAuthenticationWebFilter(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager, ServerOAuth2AuthorizedClientRepository authorizedClientRepository)Creates an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected reactor.core.publisher.Mono<java.lang.Void>onAuthenticationSuccess(org.springframework.security.core.Authentication authentication, org.springframework.security.web.server.WebFilterExchange webFilterExchange)-
Methods inherited from class org.springframework.security.web.server.authentication.AuthenticationWebFilter
filter, setAuthenticationConverter, setAuthenticationFailureHandler, setAuthenticationSuccessHandler, setRequiresAuthenticationMatcher, setSecurityContextRepository, setServerAuthenticationConverter
-
-
-
-
Constructor Detail
-
OAuth2LoginAuthenticationWebFilter
public OAuth2LoginAuthenticationWebFilter(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager, ServerOAuth2AuthorizedClientRepository authorizedClientRepository)Creates an instance- Parameters:
authenticationManager- the authentication manager to useauthorizedClientRepository-
-
-
Method Detail
-
onAuthenticationSuccess
protected reactor.core.publisher.Mono<java.lang.Void> onAuthenticationSuccess(org.springframework.security.core.Authentication authentication, org.springframework.security.web.server.WebFilterExchange webFilterExchange)- Overrides:
onAuthenticationSuccessin classorg.springframework.security.web.server.authentication.AuthenticationWebFilter
-
-