Project

General

Profile

Support #39911

rest_authentication : lever des exceptions spécifiques en cas d'échec

Added by Benjamin Dauvergne 11 days ago. Updated 11 days ago.

Status:
Nouveau
Priority:
Normal
Category:
-
Target version:
-
Start date:
14 Feb 2020
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

DRF transformer toutes les exceptions AuthenticationFailed en PermissionDenied et sans {'err': 1} qu'on aime tant.

On voudrait lever des PublikAuthenticationFailed('invalid-signature' / 'user-not-found'}

Produisant du

401 AuthenticationFailed
Content-Type: application/json

{'err': 'invalid-signature'} ou {'err': 'user-not-found'}

Related issues

Related to Combo - Development #35352: fargo, ne pas logger d'erreur de GET sur une 403 Information nécessaire 10 Aug 2019

History

#1 Updated by Benjamin Dauvergne 11 days ago

#2 Updated by Benjamin Dauvergne 11 days ago

  • Assignee set to Benjamin Dauvergne

Also available in: Atom PDF