[Task]: Handle missing 2FA gracefully in pinguino

Open
#16,541 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

The issue describes Pinguino handling 2FA requirements before feature requests and handling API errors when 2FA is missing, but it does not name files or tests. Start by locating Pinguino's request and authentication flows, then identify how API errors are surfaced. Done means requests check for required 2FA and missing-2FA API errors are handled gracefully.

Written by the indexing model from the issue text.

Description

component:pinguino_devhub
Description

Because of reprompting (https://github.com/mozilla/addons/issues/16438) or just as a blanket requirement for the entire thing, some features require 2FA.

Pinguino should handle that gracefully, ideally checking whether the user needs to enter or re-enter 2FA depending on the page/feature before it comes up and redirecting the user, but also handling the API error if they somehow manage to make a request without 2FA enabled on APIs that require it.

Acceptance Criteria
  • Pinguino checks for 2FA before making requests that would require it
  • Pinguino handles API returning an error because of missing 2FA

┆Issue is synchronized with this Jira Task

Dominant language
Makefile
Stars
135
Forks
52
Avg merge
6d 18h
Merged PRs (30d)
7

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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 mozilla/addons

All issues in mozilla/addons

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.