HomeSoftware Heritage

auth/backends: Adjust TTL for cached OIDC userinfo

Authored by anlambert on Mar 23 2020, 2:18 PM.

Description

auth/backends: Adjust TTL for cached OIDC userinfo

No need to substract 1 from computed TTLs as it can lead to cache userinfo
with a 0 seconds TTL when access token is about to expire and thus send
multiple userinfo requests to the OIDC server on successive calls to the
Web API.