Page MenuHomeSoftware Heritage

auth/backends: Adjust TTL for cached OIDC userinfo
ClosedPublic

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

Details

Summary

This is a simple adjustement for the TTL value of cached OIDC userinfo when using
bearer token authentication.

There is 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.

I noticed that behavior while testing authentication integration in swh-web-client.

Diff Detail

Repository
rDWAPPS Web applications
Branch
adjust-userinfo-cache-ttl
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 11284
Build 17058: Cypress tests for swh-web diffsJenkins
Build 17057: tox-on-jenkinsJenkins
Build 17056: arc lint + arc unit