Allow Bypassing Password Confirmation for 2FA Setup for SSO-Authenticated Users

Created on 6 February 2025, about 2 months ago

Problem/Motivation

We have configured the TFA (Two-Factor Authentication) module to enable 2FA setup for specific roles. Additionally, we offer an SSO (Single Sign-On) login option for users authenticating through an external identity provider. The current implementation presents a challenge:

  1. SSO-authenticated users are not required to set up a password in Drupal, as their authentication is managed externally.
  2. We need to restrict access to local Drupal accounts for users authenticated via SSO.

This creates a difficulty when setting up 2FA, as the TFA module currently requires users to confirm their password to proceed with 2FA configuration. This step is not possible for SSO-authenticated users who do not have a local Drupal password.

Proposed resolution

We can add a new permission called "Bypass the password confirmation prompt". This permission would allow roles with this capability to skip the password confirmation step when setting up 2FA for their accounts. This solution would:

  1. Enable SSO-authenticated users, who do not have a local Drupal password, to configure 2FA seamlessly.
  2. Provide administrators with greater flexibility by allowing them to manage this functionality through role-based permissions.

Remaining tasks

Patch needs review

Feature request
Status

Needs work

Version

1.9

Component

Code

Created by

🇮🇳India Hardik_Patel_12 India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024