demarches-simplifiees / demarches-simplifiees.fr

Dématérialiser et simplifier les démarches administratives
https://www.demarches-simplifiees.fr
GNU Affero General Public License v3.0
193 stars 88 forks source link

ETQ Usager se connectant par FC, je dois confirmer mon mail #10570

Closed kara22 closed 3 weeks ago

kara22 commented 3 months ago

10425

Etape 1 :

image

Etape 2 :

image

Étape 3 (en cas de changement de mail) :

image

Etape 4 :

image

Etape 5 : confirmer le mail

image

Etape 6 : le mail est confirmé

image
what-the-diff[bot] commented 3 months ago

PR Summary

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 97.89474% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.61%. Comparing base (0b8212f) to head (5e2cc74).

Files with missing lines Patch % Lines
...ntrollers/france_connect/particulier_controller.rb 97.26% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10570 +/- ## ========================================== - Coverage 84.64% 84.61% -0.04% ========================================== Files 1121 1121 Lines 24816 24837 +21 Branches 4615 4622 +7 ========================================== + Hits 21005 21015 +10 - Misses 3811 3822 +11 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mfo commented 2 months ago

amélioration pour la saisie du mail alternatif (on a un 'helper' pour detecter les typos, autant s'en servir ici pour se faciliter la vie au support) :

Capture d’écran 2024-07-24 à 4 53 34 PM

0001-feat-france_connect-choose_email-prevent-bad-email.patch

mfo commented 2 months ago

🔴 ETQ usager me connectant avec FC, lorsque je demande a être notifié sur un mail spécifique, si j'utilise un email existant => 500 🟢 ETQ usager me connectant avec FC, lorsque je demande a être notifié sur un mail spécifique, si j'utilise un email existant => je suis encouragé a faire une demande de reset password

Capture d’écran 2024-07-24 à 4 35 37 PM

0001-feat-particulier-associate_user-catch-email-already-.patch

mfo commented 2 months ago

J'ai l'impression que l'écran pour choisir son email via une connection FC n'est pas clair :

Capture d’écran 2024-07-24 à 4 48 34 PM

En substance, après une création de compte par email, qui lui est clair :

Capture d’écran 2024-07-24 à 4 49 17 PM

@kara22 , moyen que tu clarifies le truc ?

mfo commented 2 months ago

L'écran de demande de confirmation d'email etait un peu brut :

Capture d’écran 2024-07-24 à 4 42 26 PM

Maintenant il brille

Capture d’écran 2024-07-24 à 4 56 39 PM

0001-feat-particulier-confirm_email-nicer.patch

mfo commented 2 months ago

C'est un premier bout de revue fonctionnelle (ac un peu de code ou Sim ne s'etait pas trop exprimé). Cependant pas facile de relire la ou il y a encore pas mal de suggestion de Sim : j'attends que vous vous accordiez/mergiez les suggestions déjà ouverte avant de venir en rajouter.

Donc je m'arrete la pour le moment. @kara22, souhaites tu merger les patchs toi même ou je push ? dis moi ce que tu préfère

gitguardian[bot] commented 2 months ago

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | | | -------------- | ------------------ | ------------------------------ | ---------------- | --------------- | -------------------- | | [6306805](https://dashboard.gitguardian.com/workspace/385435/incidents/6306805?occurrence=164652935) | Triggered | Generic Password | eaef5c7e39f71707dd7be60d09bdd1df08375be9 | spec/controllers/france_connect/particulier_controller_spec.rb | [View secret](https://github.com/demarches-simplifiees/demarches-simplifiees.fr/commit/eaef5c7e39f71707dd7be60d09bdd1df08375be9#diff-bfc7f768a8a7787ee7ecdec308bf66557da31535236f923daab41e83085a764dR397) | | [6306805](https://dashboard.gitguardian.com/workspace/385435/incidents/6306805?occurrence=164652936) | Triggered | Generic Password | eaef5c7e39f71707dd7be60d09bdd1df08375be9 | spec/controllers/france_connect/particulier_controller_spec.rb | [View secret](https://github.com/demarches-simplifiees/demarches-simplifiees.fr/commit/eaef5c7e39f71707dd7be60d09bdd1df08375be9#diff-bfc7f768a8a7787ee7ecdec308bf66557da31535236f923daab41e83085a764dL582) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/generics/generic_password#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

marleneklok commented 1 month ago

Quelques recos ergo/UX (le dernier écran "Confirmez votre adresse / connexion par mail" reste à rediscuter) : UX_Connexion avec FranceConnect.pdf