feat/wave-16-on-main #3

Merged
m.mabrey merged 8 commits from feat/wave-16-on-main into main 2026-10-06 22:40:22 +00:00
Showing only changes of commit b2b3774dea - Show all commits

View File

@@ -108,9 +108,16 @@ def d21():
"login_at": (now - timedelta(minutes=25)).timestamp(), "login_at": (now - timedelta(minutes=25)).timestamp(),
"exp": now + timedelta(minutes=5)}, auth.SECRET_KEY, algorithm="HS256") "exp": now + timedelta(minutes=5)}, auth.SECRET_KEY, algorithm="HS256")
r = client(token=near).get("/api/projects") r = client(token=near).get("/api/projects")
check("D21", "the D18 sliding refresh still reissues the session", if hasattr(auth, "maybe_refresh_token"):
r.status_code == 200 and auth.COOKIE_NAME in (r.headers.get("set-cookie") or ""), check("D21", "the D18 sliding refresh still reissues the session",
f"status {r.status_code}") r.status_code == 200 and auth.COOKIE_NAME in (r.headers.get("set-cookie") or ""),
f"status {r.status_code}")
else:
# D18 (T13.1) is not on this branch (wave 16 built on main, 2026-10-06):
# there is no refresh to keep working, so prove the stricter decode still
# accepts a valid token about to expire.
check("D21", "a valid token close to its expiry is still accepted (no D18 on this branch)",
r.status_code == 200, f"status {r.status_code}")
import re import re
pin = re.search(r"(?im)^pyjwt==([0-9.]+)", open(os.path.join(ROOT, "server", "requirements.txt")).read()) pin = re.search(r"(?im)^pyjwt==([0-9.]+)", open(os.path.join(ROOT, "server", "requirements.txt")).read())
pinned = tuple(int(x) for x in pin.group(1).split(".")) if pin else (0,) pinned = tuple(int(x) for x in pin.group(1).split(".")) if pin else (0,)