Details
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
- links to