-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excluding certain routes when BASIC_AUTH_FORCE = True #11
Comments
Related: exclude certain methods, like |
This might help: #14 . |
#14 resolves the CORS issue, but not the @domkck did you end up writing that patch? I assume we just need something like |
@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? |
I'm using the following workaround: class BasicAuthExceptHealthcheck(BasicAuth):
def authenticate(self):
return request.path == "/healthcheck" or super().authenticate() then use |
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
.The text was updated successfully, but these errors were encountered: