HomeSoftware Heritage

auth/backends: Fix cache TTL computation for OIDC profile

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

auth/backends: Fix cache TTL computation for OIDC profile

The cache TTL for storing an OIDC profile must be computed from the
access token renewal date (iat field in decoded token) and not from
the OIDC session opening date (auth_time field in decoded token).

Previous implementation was computing a negative TTL (clamped to 0)
once the first issued refresh token was expired and thus the
authentication process was then failing.

Details

Provenance
anlambertAuthored on Mar 17 2021, 5:43 PM
anlambertPushed on Mar 17 2021, 6:13 PM
Differential Revision
D5269: auth/backends: Fix cache TTL computation for OIDC profile
Build Status
Buildable 19975
Build 31008: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.