Skip to content

Refactor 2FA UX to let existing users without 2FA set it up #167

@consideRatio

Description

@consideRatio

It would be good to allow already registered users to register for 2FA authentication.

To implement this, I bet its relevant to setup dedicated handlers for the 2FA matters. Currently we have providing a code to be part of the login screen, and part of setting up 2FA part of the signup screen. If we would allow users to enable 2FA after they are created, we don't want to forcefully tweak the signup handler to manage this as it would add too much complexity. It would be better to have a dedicated screen to both setup 2FA and to enter a 2FA code I think.

I see no reason for this to be backward incompatible, but it will probably be a quite significant in size PR.

Action points (chronological order)

  • Find tentative agreement towards the enhancement and the vague implementation idea presented above about breaking apart the 2FA parts from login/signup.
    @lambdaTotoro what do you think?
  • Establish and describe the planned changes in more detail
    • What new Handlers should be defined
    • What inputs and such should be part of new templates for the new handlers/endpoints?
    • How should the UX be for:
      • A user signing up for 2FA
      • An existing using signing up for 2FA
      • An existing user with / without 2FA logging in
      • If we would require users to activate 2FA if they didn't have it, and it is now required for the hub
  • Implement enhancement
  • Add tests
  • Update documentation where needed

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions