Skip to content

Allow each admin user to choose which 2fa providers to setup #273

Open
@willjones9

Description

Preconditions

  • Magento 2.4.0
  • PHP 7.3 and 7.4

Steps to reproduce

Enable (and configure) the following 2FA providers:

  • Duo
  • Google
  • U2F.

Expected result

A user can choose between one of the three 2FA methods.

Actual result

Magento expects all three 2FA providers to be configured for every user account and it is not possible to pick and choose which provider is used on a per user basis.

  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.

Configuring multiple 2FA providers causes the system to see them all as forced providers, meaning that they have to be configured for each and every user in the system as opposed to allowing a user to choose between one of the enabled providers.

This is a problem, considering that merchants may wish to configure the second factor authentication method on a user or role basis. For example, store administrators may wish to use Duo, whereas employees dealing with order fulfillment (who perhaps don't need to access the admin area out of hours and not have mobile phones on them during their day) may need to use a U2F such as Yubikey or similar.

The current implementation does not allow for this use case, which seems like it should be a very obvious option that should be included.

Metadata

Assignees

Labels

Component: 2FAIssues and Pull Requests related to Two Factor Authentication should be marked with this labelProgress: dev in progressenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions