Projet

Général

Profil

Development #21769

Page d'édition de profil limitée à certains attributs

Ajouté par Frédéric Péters il y a environ 6 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
10 février 2018
Echéance:
20 février 2018
% réalisé:

100%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Pouvoir qualifier les attributs avec une "zone" (genre cœur, couronne) et utiliser cette information pour proposer des pages /accounts/edit/<zone>/ où le formulaire contiendrait uniquement les champs de la zone.


Fichiers

0002-add-a-scope-attribute-to-Attribute-21769.patch (2,12 ko) 0002-add-a-scope-attribute-to-Attribute-21769.patch Benjamin Dauvergne, 20 février 2018 16:58
0003-filter-attributes-on-edit-profile-page-by-scope-fixe.patch (4,24 ko) 0003-filter-attributes-on-edit-profile-page-by-scope-fixe.patch Benjamin Dauvergne, 20 février 2018 16:58
0001-add-a-next_url-parameter-to-edit-profile-view-21769.patch (4,46 ko) 0001-add-a-next_url-parameter-to-edit-profile-view-21769.patch Benjamin Dauvergne, 20 février 2018 16:58
0002-add-a-scope-attribute-to-Attribute-21769.patch (2,21 ko) 0002-add-a-scope-attribute-to-Attribute-21769.patch Benjamin Dauvergne, 20 février 2018 18:15
0003-filter-attributes-on-edit-profile-page-by-scope-fixe.patch (5,41 ko) 0003-filter-attributes-on-edit-profile-page-by-scope-fixe.patch Benjamin Dauvergne, 20 février 2018 18:15
0001-add-a-next_url-parameter-to-edit-profile-view-21769.patch (4,46 ko) 0001-add-a-next_url-parameter-to-edit-profile-view-21769.patch Benjamin Dauvergne, 20 février 2018 18:15
0005-add-a-scope-attribute-to-Attribute-21769.patch (2,21 ko) 0005-add-a-scope-attribute-to-Attribute-21769.patch Benjamin Dauvergne, 22 février 2018 06:43
0002-saml-implement-a2_hook_good_next_url-for-SAML-2.0-SP.patch (1,6 ko) 0002-saml-implement-a2_hook_good_next_url-for-SAML-2.0-SP.patch Benjamin Dauvergne, 22 février 2018 06:43
0001-utils-add-hook-a2_hook_good_next_url-21769.patch (1,05 ko) 0001-utils-add-hook-a2_hook_good_next_url-21769.patch Benjamin Dauvergne, 22 février 2018 06:43
0004-add-a-next_url-parameter-to-edit-profile-view-21769.patch (4,58 ko) 0004-add-a-next_url-parameter-to-edit-profile-view-21769.patch Benjamin Dauvergne, 22 février 2018 06:43
0006-filter-attributes-on-edit-profile-page-by-scope-fixe.patch (5,62 ko) 0006-filter-attributes-on-edit-profile-page-by-scope-fixe.patch Benjamin Dauvergne, 22 février 2018 06:43
0003-tests-add-more-coverage-for-tests-of-next_url-checki.patch (6,22 ko) 0003-tests-add-more-coverage-for-tests-of-next_url-checki.patch Benjamin Dauvergne, 22 février 2018 06:43

Révisions associées

Révision 06c37bec (diff)
Ajouté par Benjamin Dauvergne il y a environ 6 ans

utils: add hook a2_hook_good_next_url (#21769)

Révision 09dab1b4 (diff)
Ajouté par Benjamin Dauvergne il y a environ 6 ans

saml: implement a2_hook_good_next_url for SAML 2.0 SPs (#21769)

Révision 8ae64236 (diff)
Ajouté par Benjamin Dauvergne il y a environ 6 ans

tests: add more coverage for tests of next_url checking (#21769)

Révision 93cc7e36 (diff)
Ajouté par Benjamin Dauvergne il y a environ 6 ans

add a next_url parameter to edit-profile view (#21769)

Révision fcc3a92b (diff)
Ajouté par Benjamin Dauvergne il y a environ 6 ans

add a scope attribute to Attribute (#21769)

Révision ce363ab8 (diff)
Ajouté par Benjamin Dauvergne il y a environ 6 ans

filter attributes on edit-profile page by scope (fixes #21769)

Historique

#2

Mis à jour par Benjamin Dauvergne il y a environ 6 ans

  • Echéance mis à 20 février 2018
  • Assigné à mis à Benjamin Dauvergne
#3

Mis à jour par Benjamin Dauvergne il y a environ 6 ans

Au passage j'ajoute un support de next_url à /accounts/edit/ c'était pas
forcément nécessaire, puisque par défaut on revient sur /accounts/ qui lui même
peut pointer sur une page externe, mais bon c'est plus souple.

Donc la fonctionnalité passe par un paramètre ?scope= on peut y mettre un ou
plusieurs scopes qui filtreront les attributs, de même un attribut peut avoir
un ou plusieurs scopes.

#4

Mis à jour par Benjamin Dauvergne il y a environ 6 ans

  • Patch proposed changé de Non à Oui
#5

Mis à jour par Frédéric Péters il y a environ 6 ans

  • Statut changé de Nouveau à En cours

0002, noter que scopes c'est séparé par des espaces ?

0003, bien sûr j'aurais trouvé plus joli /accounts/edit/<scope>/ que ?scope=<scope>, mais ok.

#6

Mis à jour par Benjamin Dauvergne il y a environ 6 ans

Frédéric Péters a écrit :

0002, noter que scopes c'est séparé par des espaces ?

Ok.

0003, bien sûr j'aurais trouvé plus joli /accounts/edit/<scope>/ que ?scope=<scope>, mais ok.

J'ai derrière la tête le fait de pouvoir ré-utiliser ça coté OIDC pour gérer les scopes sur les attributs, faut voir si à un moment on donne un label aux scopes, au niveau OIDC ça permettra de générer une meilleur page d'autorisation et d'avoir un champs scopes sur les OIDCClient aussi.

Mais bon je peux me laisser tenter par /accounts/edit/contact/.

#9

Mis à jour par Frédéric Péters il y a environ 6 ans

0002-saml-implement-a2_hook_good_next_url-for-SAML-2.0-SP.patch

Il y a de la ligne blanche en déchets de fin de fichier; ack là-dessus et le reste.

#10

Mis à jour par Benjamin Dauvergne il y a environ 6 ans

  • Statut changé de En cours à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#11

Mis à jour par Benjamin Dauvergne il y a plus de 5 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF