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