16669: Fix cache bug.
authorTom Clegg <tom@curii.com>
Mon, 25 Jan 2021 21:01:51 +0000 (16:01 -0500)
committerTom Clegg <tom@curii.com>
Mon, 25 Jan 2021 21:01:51 +0000 (16:01 -0500)
commitf0d3eae5fc05aaad38a2998627c59637e3ef606c
tree99dffe70601462357598d7fee11cb0c5a6afb59e
parent5e846bd0291b1eba00b294373fde76bf95a9e091
16669: Fix cache bug.

When caching a valid token we were updating the database with
exp=now+10m but updating the cache with exp="". When checking the
cache, exp="" indicates we don't need to re-check the access token and
extend the database entry's expiry field -- so we never did, we just
passed through the HMAC, which RailsAPI rejected based on the expiry
time in the database row.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/controller/localdb/login_oidc.go