mirror of https://github.com/snachodog/mybuddy.git
Exclude /api from PROXY forward auth (#790)
* Update middleware.py * Fix gulp * Call super() * Fix comment formatting * Super duper --------- Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
This commit is contained in:
parent
aa1e2c68de
commit
2c10fc03a5
|
@ -91,6 +91,12 @@ class CustomRemoteUser(RemoteUserMiddleware):
|
|||
|
||||
header = getenv("PROXY_HEADER", "HTTP_REMOTE_USER")
|
||||
|
||||
def process_request(self, request):
|
||||
# Exclude API paths using token authentication.
|
||||
if request.path.startswith("api/"):
|
||||
return None
|
||||
return super().process_request(request)
|
||||
|
||||
|
||||
class HomeAssistant:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue