Consider a scenario where a request needs to be authenticated and then logged. How should the filters be arranged in the filter chain?

  • Authenticate, Log, Other Filters, Process Request
  • Authenticate, Other Filters, Log, Process Request
  • Log, Authenticate, Other Filters, Process Request
  • Other Filters, Authenticate, Log, Process Request
In this scenario, it is ideal to perform authentication before logging. Therefore, the correct order is to place the authentication filter before the logging filter in the filter chain. This ensures that the request is authenticated first, and then the logging is done.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *