Class BackChannelLogoutFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
com.vaadin.sso.core.BackChannelLogoutFilter
All Implemented Interfaces:
jakarta.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

public class BackChannelLogoutFilter extends org.springframework.web.filter.GenericFilterBean
A filter responsible to handle OpenID Connect Back-Channel Logout requests.
Since:
1.0
Author:
Vaadin Ltd
  • Field Summary

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    BackChannelLogoutFilter(org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.context.ApplicationEventPublisher eventPublisher)
    Creates an instance of the filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
     
    org.springframework.security.web.util.matcher.RequestMatcher
    Gets the request-matcher configured for this filter.
    void
    setBackChannelLogoutRoute(String backChannelLogoutRoute)
    Sets the back-channel logout route to match for this filter to handle the requests.
    void
    setRequestMatcher(org.springframework.security.web.util.matcher.RequestMatcher logoutRequestMatcher)
    Sets the request-matcher for this filter.

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

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

    • BackChannelLogoutFilter

      public BackChannelLogoutFilter(org.springframework.security.core.session.SessionRegistry sessionRegistry, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.context.ApplicationEventPublisher eventPublisher)
      Creates an instance of the filter.
      Parameters:
      sessionRegistry - the session registry, not null
      clientRegistrationRepository - the client-registration repository, not null
      eventPublisher - the event-publisher to publish logout events, not null
  • Method Details

    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • getRequestMatcher

      public org.springframework.security.web.util.matcher.RequestMatcher getRequestMatcher()
      Gets the request-matcher configured for this filter.
      Returns:
      this filter's request-matcher, not null
    • setRequestMatcher

      public void setRequestMatcher(org.springframework.security.web.util.matcher.RequestMatcher logoutRequestMatcher)
      Sets the request-matcher for this filter.
      Parameters:
      logoutRequestMatcher - the request-matcher, not null
    • setBackChannelLogoutRoute

      public void setBackChannelLogoutRoute(String backChannelLogoutRoute)
      Sets the back-channel logout route to match for this filter to handle the requests.
      Parameters:
      backChannelLogoutRoute - the route to match, not null