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 AuthenticationWebFilter
A specializedAuthenticationWebFilter
that converts from anOAuth2LoginAuthenticationToken
to anOAuth2AuthenticationToken
and saves theOAuth2AuthorizedClient
- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description OAuth2LoginAuthenticationWebFilter(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(Authentication authentication, 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(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(Authentication authentication, WebFilterExchange webFilterExchange)
- Overrides:
onAuthenticationSuccess
in classAuthenticationWebFilter
-
-