Bug #9955
Les données envoyées en POST pour la token request ne sont pas en json.
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
12 février 2016
Echéance:
% réalisé:
0%
Temps estimé:
Hors marché:
Non
Patch proposed:
Oui
Planning:
Description
L'envoi en json est bien supporté par FC mais pas par oidc_provider.
La RFC4769 précise 'The client makes a request to the token endpoint by sending the following parameters using the "application/x-www-form-urlencoded"'.
L'exemple de token request FC est bien :
URL : <FC_URL>/api/v1/token Méthode : POST Corps HTTP : 'grant_type': 'authorization_code', 'redirect_uri': '<FS_URL>/<URL_CALLBACK>', 'client_id': '<CLIENT_ID>', 'client_secret': '<CLIENT_SECRET>', 'code': '<AUTHZ_CODE>'
Alors que lorsque le json est accepté on le retrouve d'indiqué :
URL : <FC_URL>/api/v1/checktoken Méthode : POST Corps HTTP : {‘token’ : ‘<ACCESS_TOKEN>’}
Fichiers
Historique
Mis à jour par Mikaël Ates il y a environ 8 ans
- Statut changé de Nouveau à Fermé
commit 6a5efd508387edc46e38501251861922d720c0c2