HomeSoftware Heritage

deposit.auth: Fix authentication failure corner case

Description

deposit.auth: Fix authentication failure corner case

The error raised from keycloak can be less detailed than anticipated [1]. This makes the
deposit server fails. So this commit fixes it by detailing only if it can. Delegating
such details to the newly crafted swh.auth.keycloak.keycloak_error_message utility.

[1] https://forge.softwareheritage.org/differential/revision/edit/5311/

Related to T3166

Details

Provenance
ardumontAuthored on Mar 23 2021, 3:59 PM
ardumontPushed on Mar 23 2021, 5:52 PM
Differential Revision
D5311: deposit.auth: Fix authentication failure corner case
Parents
rDDEPba44a97373a2: deposit.auth: Adjust authentication error message
Branches
Unknown
Tags
Unknown
References
tag: v0.13.2
Tasks
T3166: Deploy deposit v0.13 in staging
Build Status
Buildable 20140
Build 31272: test-and-buildJenkins console · Jenkins