Account page: sign in again from the two-factor step when the sign-in is too old

Ouverte
#3,445 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
58/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
csharp

Piste de recherche

Start with admin/src/FluentCMS.Admin/Account/AccountTwoFactor.razor and trace how it handles FCMS3065 and displays Account.TwoFactor.SignInAgainFirst. Then follow the hosted-page authorize flow and account-page return handling to see where prompt=login and resuming enrolment belong. Done means the action returns to the two-factor step with a fresh token, enrolment succeeds, and component and end-to-end tests cover the flow.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

area:admin type:feature

Problem

Since #3372 (#3444), POST /me/two-factor/enrol and POST /me/two-factor/verify need a token whose sign-in on the hosted pages is at most ten minutes old; an older one is refused with FCMS3065 (403). The account page (admin/src/FluentCMS.Admin/Account/AccountTwoFactor.razor) now shows a message that says to sign in again (Account.TwoFactor.SignInAgainFirst), and the user has to sign out and in by hand and find the page again.

Proposal

On FCMS3065, offer to sign in again from the page: an authorize request with prompt=login that comes back to the account page, where the enrolment goes on with the new token.

Acceptance

  • From the message, one action signs the user in again and returns to the two-factor step of the account page
  • An enrolment that follows within the window succeeds, with a component test and an end-to-end case

For workstation A. Follows #3372 and #3444, which made only the smallest change under admin/.

Langage dominant
C#
Étoiles
567
Forks
107
Merge moyen
1 h 19 min
PR mergées (30 j)
353

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fluentcms/FluentCMS

Toutes les issues de fluentcms/FluentCMS

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.