You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mechanism for ignoring paths in AuthenticationMiddleware
Motivation
Currently all requests are processed by AuthenticationMiddleware and it'd be a good option to provide a mechanism for ignoring requests based on regex patterns.
Proposed changes
In flama/authentication/middleware.py we can add a new parameter to AuthenticationMiddleware consisting of a list of regex patterns.
This list will be used in __call__ for filtering (continue executing) requests and only apply the middleware logic to those requests whose path is not matching any of the regex patterns.
The text was updated successfully, but these errors were encountered:
Summary
Mechanism for ignoring paths in AuthenticationMiddleware
Motivation
Currently all requests are processed by AuthenticationMiddleware and it'd be a good option to provide a mechanism for ignoring requests based on regex patterns.
Proposed changes
In
flama/authentication/middleware.py
we can add a new parameter toAuthenticationMiddleware
consisting of a list of regex patterns.This list will be used in
__call__
for filtering (continue executing) requests and only apply the middleware logic to those requests whose path is not matching any of the regex patterns.The text was updated successfully, but these errors were encountered: