Class AnonymousAdditionalAuthorizationFilter

All Implemented Interfaces:
jakarta.servlet.Filter, Aware, BeanNameAware, DisposableBean, InitializingBean, EnvironmentAware, EnvironmentCapable, ServletContextAware

public class AnonymousAdditionalAuthorizationFilter extends BasicAuthenticationFilter
This is a Filter class that'll fetch special groups from the AuthenticationService and set these in the current DSpace Context. It'll do extra processing on anonymous requests to see which authorizations they can implicitly have and adds those This will allow us to for example set a specific Group to a specific IP so that any request from that IP is always treated as being a part of the configured group. The configuration for the authentication through ip can be found in authentication-ip.cfg This can be enabled by uncommenting the IPAuhentication plugin in authentication.cfg
  • Constructor Details

    • AnonymousAdditionalAuthorizationFilter

      public AnonymousAdditionalAuthorizationFilter(AuthenticationManager authenticationManager, AuthenticationService authenticationService)
      Constructor for the class
      Parameters:
      authenticationManager - The relevant AuthenticationManager
      authenticationService - The autowired AuthenticationService
  • Method Details

    • doFilterInternal

      protected void doFilterInternal(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Overrides:
      doFilterInternal in class BasicAuthenticationFilter
      Throws:
      IOException
      jakarta.servlet.ServletException