QuantumNous / QuantumNous/new-api

Root/Admin to enforce 2FA for all users

Open
#7,263 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
48.5k
Forks
11.6k
Avg merge
1d 17h
Merged PRs (30d)
58

Description

Your current newapi version

v1.0.0-rc.34

Submission Checks
  • Non-duplicate issue: I have searched existing Issues and confirmed there are no similar issues.
  • Read this first: I have fully read the section above, reviewed the docs at https://docs.newapi.ai/ and the project README, and asked AI first, confirming this is not a usage, configuration, or integration question, and that the current version cannot meet my needs.
  • Template intact: I have not removed any guidance or section headings from this template and will complete it as requested.
  • Maintainer time: I understand that maintainers have limited time and issues that do not follow this template may be ignored or closed directly.
Feature Description

For security reason, especially for corporate internal use, root/admin should be able to enforce 2FA for all users instead of letting users to choose to enable or not. User can only login with 2FA.

Alternatively, when root/admin turn on the enforcement function, users without 2FA can still login but cannot use some of the functions.

Use Case

When higher security standard is required.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by tracing the existing login and 2FA flows, then locate the root/admin settings entry point. Clarify whether enforcement blocks login or restricts selected functions, define the affected user states and admin behavior, and add tests that demonstrate the chosen policy is applied consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.