about summary refs log tree commit diff
path: root/test/python/test_mapping_methods.py
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-06 22:19:19 +0000
committerPjotr <wrk@bosa.lan>2026-11-06 22:19:19 +0000
commit9a6c5f36e4435c3f8dd04b21458e18074310e2fa (patch)
tree9b7b2fb454a1f2073869d4de2faf035cd06826e3 /test/python/test_mapping_methods.py
parent5c21b0513a26cce220ddfae560a1290e39522106 (diff)
downloadgenenetwork4-9a6c5f36e4435c3f8dd04b21458e18074310e2fa.tar.gz
README: tokens are stateless, and `exp` is the only lifetime
Nothing about a bearer token is kept server side -- no session table, no
issued-token list, no denylist -- so restarting genenetwork4 (or the
auth server) loses no tokens, and restarting is not a way to revoke
them. The two in-process caches (the key set for an hour, authorisation
answers for a minute) are refresh intervals, not lifetimes; the hour
only bites when the auth server is unreachable, after which every
request is a 401 with a JWKS-fetch detail while the tokens themselves
are still valid.

Also records that `exp` is optional in this validation, so a
hand-minted token without one never expires -- which is exactly what the
gn-auth dev token mentioned a few paragraphs earlier is doing.

* README.md (Development): "Tokens are stateless", plus a note on the
gn-auth dev token not carrying `exp`, and the config keys paragraph
moved back above the section it belongs to.
Diffstat (limited to 'test/python/test_mapping_methods.py')
0 files changed, 0 insertions, 0 deletions