Skip to content

Bug 2071347 - #2757

Merged
dklawren merged 2 commits into
mozilla:masterfrom
dklawren:2071347
Sep 23, 2026
Merged

dklawren merged 2 commits into
mozilla:masterfrom
dklawren:2071347

Conversation

@dklawren

Copy link
Copy Markdown
Collaborator

Review carried over from private pull request
https://bugzilla.mozilla.org/show_bug.cgi?id=2071347

Copilot AI balanced review requested due to automatic review settings September 23, 2026 19:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

OAuth bearer authentication can return a 500 instead of the intended JSON 401 for disabled users.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Enforces account-state restrictions across native authentication, blocking disabled or password-reset-required accounts from using existing credentials.

Changes:

  • Adds shared account usability checks.
  • Applies checks to API-key and OAuth2 authentication.
  • Adds regression coverage for REST and OAuth flows.
File Description
t/​app-login-disabled-account.t Tests disabled and password-reset authentication behavior.
Bugzilla/​App/​Plugin/​OAuth2/​Provider.pm Validates OAuth users; REST usage mode must be normalized before validation to prevent a 500 response.
Bugzilla/​App/​Plugin/​Login.pm Adds account-state validation, redirects, and REST error-mode handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Bugzilla/App/Plugin/OAuth2/Provider.pm
…arer-token usability checks'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@dklawren
dklawren merged commit ea189b6 into mozilla:master Sep 23, 2026
8 checks passed
@dklawren
dklawren deleted the 2071347 branch September 23, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants