Skip to content

Offer an opt-in “Use password” button in fingerprint prompts - #21994

Open
muness wants to merge 2 commits into
omacom:quattrofrom
muness:feat/polkit-use-password
Open

muness wants to merge 2 commits into
omacom:quattrofrom
muness:feat/polkit-use-password

Conversation

@muness

@muness muness commented Dec 6, 2026

Copy link
Copy Markdown

What changes

A fingerprint scan can leave someone waiting when they would rather type their account password. Setup → Security → Fingerprint keeps Register Fingerprint and adds Show “Use password” in Prompts. It is off by default and is only offered with a compatible polkit PAM rule and optional Qt provider.

When enabled, the button stops the current scan and switches to the real password prompt in the same request; it does not authorize the action. Escape still cancels. No automatic PAM edits, package installs, sudo/login changes, or hard dependency on Aurora. The provider and protocol come from Aurora #224.

Verification

  • Targeted polkit, menu and localization tests passed (76, 130 and 417 assertions). A fresh preference directory defaults to off; the menu toggles both ways and hides the option without support.
  • Verified on a Touch ID Mac that disabling/enabling the preference releases/reacquires the process-bound sender without a shell restart. The preceding local port completed separate password and fingerprint authorizations; Escape dismissed a third request without running the command. The updated clone authorized a harmless id -u request. The full suite was not run locally.

Screenshots

Isolated renders of the actual QML with synthetic prompt state; no live authentication or user desktop captured.

Default fingerprint prompt
Opted-in fingerprint prompt
Fingerprint setup menu

- Keep the default fingerprint prompt unchanged; expose the per-user opt-in beside enrollment when the PAM and Qt providers support switching.
- Scope each offer to the active polkit flow and keep the password, dismissal and drive-unlock paths separate.
@greptile-apps

greptile-apps Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no blocking issue was found in the reviewed changes.

Summary

Adds an off-by-default “Use password” option for compatible fingerprint prompts.

  • Fingerprint prompts can switch to password entry on request.
  • Fingerprint setup and removal keep supported PAM providers intact.

No actionable new issues were found. No previous review threads were supplied. Runtime authentication and visual checks were not run during this review.

Diagram

sequenceDiagram
  participant User
  participant Shell
  participant Provider
  participant PAM
  User->>Shell: Enable “Use password”
  Shell->>Provider: Create sender
  PAM->>Shell: Offer switch token
  Shell->>User: Show “Use password”
  User->>Shell: Click button
  Shell->>Provider: Send current token
  Provider->>PAM: Request password instead
  PAM->>Shell: Ask for password
Loading

Reviews (2) · Last reviewed commit: "Preserve an existing fingerprint rule wh..." · Reviewed by Greptile

- Recognize the stock and alternate PAM module in the module field instead of adding a stock scan that masks the switch.
- Keep the clamshell gate and options intact; cover reapplication, cleanup and stock-first stacks.
@omarchybot omarchybot added the enhancement New feature or request label Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants