Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20814

Replace AuthorizationHeaderFilter with own implementation of SecurityFilter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • rest
    • Docs Required, Release Notes Required

    Description

      Current Behavior: We're currently injecting an empty Authorization header in requests lacking one, as Micronaut filters out requests without authentication headers. This is handled by the AuthorizationHeaderFilter.

      Problem: This workaround is not ideal and could lead to maintainability issues.

      Proposed Solution: Develop a custom SecurityFilter that:

      • Checks whether authentication is enabled.
      • Forwards requests to io.micronaut.security.filters.SecurityFilter if authentication is required.
      • Allows requests to proceed without authentication if it's not required.

      Objective: To replace the AuthorizationHeaderFilter with a more robust and maintainable custom SecurityFilter implementation.

      Attachments

        Issue Links

          Activity

            People

              ivan.gagarkin Ivan Gagarkin
              ivan.gagarkin Ivan Gagarkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m