HomeSoftware Heritage

deposit.auth: Fix authentication failure corner case

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

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
Tasks
T3166: Deploy deposit v0.13 in staging
Build Status
Buildable 20140
Build 31272: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.