Project

General

Profile

Development #21962

ajouter un hook a2_hook_modify_serializer pour rapporter les informations de liaison FC si présence paramètre ?full

Added by Benjamin Dauvergne almost 2 years ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
19 Feb 2018
Due date:
% Done:

0%

Hors marché:
No
Patch proposed:
Yes
Planning:
No

Description

Test via request = serializer.context.get('request').

Ajouter un champ franceconnect avec la valeur:

{
   "linked": true,
   "link": "https://idp/link-view/",
   "unlink": "https://idp/unlink-view/" 
}

0001-api-add-franceconnect-information-to-user-s-API-when.patch View (3.3 KB) Benjamin Dauvergne, 19 Feb 2018 01:43 PM


Related issues

Related to Authentic 2 - Development #21768: Étendre l'API "user" avec les informations de liaison FranceConnect Fermé 10 Feb 2018 20 Feb 2018

Associated revisions

Revision afa48159 (diff)
Added by Benjamin Dauvergne almost 2 years ago

api: add franceconnect information to user's API when ?full is used (fixes #21962)

The following field is added to user's attributes if FC plugin is
enabled and the "full" parameter is given to the user's API:

"franceconnect": {
"linked": true,
"link_url": "https://idp/accounts/fc/callback/",
"unlink_url": "https://idp/accounts/fc/unlink/"
}

Revision 1008ebb4 (diff)
Added by Benjamin Dauvergne 7 months ago

api: add franceconnect information to user's API when ?full is used (fixes #21962)

The following field is added to user's attributes if FC plugin is
enabled and the "full" parameter is given to the user's API:

"franceconnect": {
"linked": true,
"link_url": "https://idp/accounts/fc/callback/",
"unlink_url": "https://idp/accounts/fc/unlink/"
}

History

#1 Updated by Benjamin Dauvergne almost 2 years ago

  • Related to Development #21768: Étendre l'API "user" avec les informations de liaison FranceConnect added

#2 Updated by Benjamin Dauvergne almost 2 years ago

  • Description updated (diff)

#3 Updated by Benjamin Dauvergne almost 2 years ago

  • Description updated (diff)

#5 Updated by Frédéric Péters almost 2 years ago

Pour être sûr, les URL fournies, c'est juste au niveau du test qu'il y a exploitation en mode API, simplement rediriger dessus fonctionne aussi ? (le @detail_route() ajoute la méthode DELETE à la vue UnlinkView, si je suis bien).

Si c'est bien ça, ack.

#6 Updated by Benjamin Dauvergne almost 2 years ago

link fonctionne sur un simple GET (puisque de toute façon si c'est la première fois il faudra une confirmation), et unlink sur un GET propose un formulaire de confirmation pour éviter les CSRF.

#7 Updated by Frédéric Péters almost 2 years ago

(et je confirme donc le ack)

#8 Updated by Frédéric Péters almost 2 years ago

  • Patch proposed changed from No to Yes
  • Status changed from Nouveau to En cours

#9 Updated by Benjamin Dauvergne almost 2 years ago

  • Status changed from En cours to Résolu (à déployer)
  • % Done changed from 0 to 100

#10 Updated by Benjamin Dauvergne almost 2 years ago

  • % Done changed from 100 to 0
  • Target version set to 0.11

#11 Updated by Benjamin Dauvergne over 1 year ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF