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

    Constructors
    Constructor
    Description
    OAuth2LoginAuthenticationWebFilter(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager, ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
    Creates an instance
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuth2LoginAuthenticationWebFilter

      public OAuth2LoginAuthenticationWebFilter(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager, ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
      Creates an instance
      Parameters:
      authenticationManager - the authentication manager to use
      authorizedClientRepository -
  • Method Details

    • onAuthenticationSuccess

      protected reactor.core.publisher.Mono<Void> onAuthenticationSuccess(org.springframework.security.core.Authentication authentication, org.springframework.security.web.server.WebFilterExchange webFilterExchange)
      Overrides:
      onAuthenticationSuccess in class org.springframework.security.web.server.authentication.AuthenticationWebFilter