Have a way to have parallel prompt for factors

Open
#263 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php

Research direction

Start by reading the main MFA plugin's prompt rendering and the existing “Summary of conditions” logic for determining when one of several factors is sufficient. Then trace how configured factors request input and trigger email, SMS, or code delivery. Done means the plugin can show independent prompts for eligible factors in parallel while preserving the existing single-factor behavior; the issue leaves the opt-in and delivery design unresolved.

Written by the indexing model from the issue text.

Description

enhancement

Not 100% how much we want this but dumping some thoughts.

The use case is when people have multiple factors setup, but only need one of them to get in. We want to give a hybrid UX so they can see a prompt for multiple factors at the same time.

So roughly:

  • the system can already detect whether 1 out of some number of factors is enough, this is the same logic as the 'Summary of conditions
  • we can also filter this list to the factors they actually have setup and require input

At this point the main mfa plugin would simply render two independent forms, and the user can just submit which ever one they want. Some plugins send an email / sms / code to somewhere, but in this scenario it might make more sense to make that an explicit step with a button. But we would not want this when that factor is used in isolation. So we'd either need to touch those factors and add an admin setting for whether we should prompt to send or send immediately. We may also need a new factor method so a factor can opt in / out of this whole parallel idea.

Dominant language
PHP
Stars
35
Forks
42
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from catalyst/moodle-tool_mfa

All issues in catalyst/moodle-tool_mfa

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.