Skip to content

fix: Use user_verification=discouraged for Reauth WebAuthn challenge. - #17976

Open
joelferrier wants to merge 1 commit into
googleapis:mainfrom
joelferrier:main
Open

fix: Use user_verification=discouraged for Reauth WebAuthn challenge.#17976
joelferrier wants to merge 1 commit into
googleapis:mainfrom
joelferrier:main

Conversation

@joelferrier

Copy link
Copy Markdown

When a fido2 compliant security key is used, and a PIN is configured, the user_verification=preferred value forces PIN authentication.

The Reauth API security key challenge is modeled on U2F which does not expose UV requirements. This change removes the PIN prompt requirement for Google Cloud customers with fido2 security keys and session length controls enabled which require security key reauth.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #17975

When a fido2 compliant security key is used, and a PIN is configured,
the user_verification=preferred value forces PIN authentication.

The Reauth API security key challenge is modeled on U2F which does
not expose UV requirements. This change removes the PIN prompt
requirement for Google Cloud customers with fido2 security keys and
session length controls enabled which require security key reauth.
@joelferrier
joelferrier requested review from a team as code owners August 3, 2026 14:49

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the WebAuthn user verification parameter from "preferred" to "discouraged" in challenges.py and updates the corresponding test cases in test_challenges.py and test_webauthn_types.py to align with this change. There are no review comments, so I have no feedback to provide.

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.

PIN prompt with fido2 security key Reauth challenge

1 participant