Заполнить отчёт и доказательства лабораторной 2

This commit is contained in:
2026-10-06 16:05:24 +03:00
parent 949622ed93
commit 956b84f2d7
10 changed files with 400 additions and 29 deletions
+12
View File
@@ -0,0 +1,12 @@
# Session expiry with SESSION_TTL_SECONDS=2
# date: 2026-10-06T12:59:03Z, commit: 949622e (branch solution/bpi2301-bakulin)
# host: Windows 11, Docker Desktop 28.5.1 (4 CPU, 4111327232 bytes RAM), Go go1.27.1, Python 3.13.1
api SESSION_TTL_SECONDS=2
GET /users/me right after login: 200
GET /users/me 3 s later:
HTTP/1.1 401 Unauthorized
Www-Authenticate: Bearer realm="messenger"
{"error":{"code":"unauthorized","message":"a valid bearer token is required","request_id":"30f35aed484df88d7c07e7ee17e2a92a"}}
api restored with SESSION_TTL_SECONDS=3600