refactor: normalize and expose forward-auth logout redirect configuration

Signed-off-by: Nguyen Huy Hoang <181364121+huyhoang171106@users.noreply.github.com>
This commit is contained in:
Nguyen Huy Hoang 2026-03-26 23:29:41 +07:00
parent b6942c8352
commit 717dc7eee7
1 changed files with 3 additions and 0 deletions

View File

@ -198,6 +198,9 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
LOGIN_URL = "/login/"
LOGOUT_REDIRECT_URL = "/login/"
AUTH_PROXY_LOGOUT_URL = (
(environ.get("TA_AUTH_PROXY_LOGOUT_URL") or "").strip() or None
)
# Cors needed for browser extension
# background.js makes the request so HTTP_ORIGIN will be from extension