HomeSoftware Heritage

django/backends: Improve error message when a bearer token expired

Description

django/backends: Improve error message when a bearer token expired

This replaces the Keycloak error message by a more comprehensible one
for end users.

Unfortunately, there is no way to get the bearer token validity period
apart using Keycloak Admin REST API but we clearly do not want to query
it in a django authentication backend.

Related to T3121

Details