flask-basicauth
flask-basicauth copied to clipboard
Excluding certain routes when BASIC_AUTH_FORCE = True
Hi, would you be interested in a patch that adds support for excluding certain routes when BASIC_AUTH_FORCE = True
? I want to protect all endpoints with the exception of for example /healthcheck
.
Related: exclude certain methods, like OPTIONS
, which is required for CORS, but which can't contain Authorization header.
This might help: https://github.com/jpvanhal/flask-basicauth/pull/14 .
#14 resolves the CORS issue, but not the /healthcheck
issue.
@domkck did you end up writing that patch?
I assume we just need something like @basic_auth.required
, but the opposite.
@jpvanhal this repo hasn't been updated in a while. Can you confirm that if I write a PR for this that you'll accept it?