Bug #10049
Handle the access token request like the ressource request.
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
22 février 2016
Echéance:
% réalisé:
0%
Temps estimé:
Hors marché:
Non
Patch proposed:
Non
Planning:
Fichiers
Historique
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
When we cannot decode the JSON content I would log an extract of the received content:
except ValueError: logger.warning('no JSON object can be decoded from ' 'the data received from {}'.format(app_settings.token_url))
replaced by
except ValueError: logger.warning('no JSON object can be decoded from ' 'the data received from {}: %r'.format(app_settings.token_url, response.content[:100))
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
In which case does if response:
fail ? I think request should always return something or launch an exception.
Mis à jour par Mikaël Ates il y a environ 8 ans
- Fichier 0001-Handle-errors-in-access-token-call-as-for-ressource-.patch 0001-Handle-errors-in-access-token-call-as-for-ressource-.patch ajouté
I got that case playing errors with the oidc provider and you're right that one should surely raise.
And content logged if no json can be decoded.
Mis à jour par Mikaël Ates il y a environ 8 ans
- Fichier
0001-Handle-errors-in-access-token-call-as-for-ressource-.patchsupprimé