mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
We'll piggyback off of the current existing configuration item, `disable_http_login`, to decide how we should submit cookies to an HTTP response. Previously, in `sso.py`, the http schema was used to make this decision. There is an issue with that, however: We cannot actually test properly if we depend on the https schema. This change allows us to toggle `disable_http_login` to modify the behavior of cookies sent with an http response to be secure. We test this behavior in test/test_auth_routes.py#L81: `test_secure_login(mock)`. Signed-off-by: Kevin Morris <kevr@0cost.org> |
||
---|---|---|
.. | ||
git | ||
models | ||
routers | ||
scripts | ||
testing | ||
__init__.py | ||
asgi.py | ||
auth.py | ||
captcha.py | ||
config.py | ||
db.py | ||
exceptions.py | ||
initdb.py | ||
l10n.py | ||
schema.py | ||
spawn.py | ||
templates.py | ||
time.py | ||
util.py |