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
A specialized
AuthenticationWebFilter
that converts from an
OAuth2LoginAuthenticationToken
to an OAuth2AuthenticationToken
and
saves the OAuth2AuthorizedClient
- Since:
- 5.1
-
Constructor Summary
ConstructorDescriptionOAuth2LoginAuthenticationWebFilter
(ReactiveAuthenticationManager authenticationManager, ServerOAuth2AuthorizedClientRepository authorizedClientRepository) Creates an instance -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<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 Details
-
OAuth2LoginAuthenticationWebFilter
public OAuth2LoginAuthenticationWebFilter(ReactiveAuthenticationManager authenticationManager, ServerOAuth2AuthorizedClientRepository authorizedClientRepository) Creates an instance- Parameters:
authenticationManager
- the authentication manager to useauthorizedClientRepository
-
-
-
Method Details
-
onAuthenticationSuccess
protected reactor.core.publisher.Mono<Void> onAuthenticationSuccess(Authentication authentication, WebFilterExchange webFilterExchange) - Overrides:
onAuthenticationSuccess
in classAuthenticationWebFilter
-