Skip to content

fix: Set the security-key hint when using cross-platform mode on Windows#62105

Merged
codingllama merged 4 commits intomasterfrom
codingllama/wanwin-cross-platform
Dec 10, 2025
Merged

fix: Set the security-key hint when using cross-platform mode on Windows#62105
codingllama merged 4 commits intomasterfrom
codingllama/wanwin-cross-platform

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

@codingllama codingllama commented Dec 9, 2025

The WebAuthn "cross-platform" authenticator attachment has evolved over time to include both physical security keys and phones. tsh uses WebAuthn.dll on Windows, which over time has adopted the new interpretation and now prompts for both security keys and phones on "cross-platform" mode (see screenshot on #62060). This is a regression of sorts for tsh, which has always equated cross-platform to security keys (and doesn't even support phones on various platforms).

This fixes the issue by updating the corresponding WebAuthn.dll structs to v9 and setting the credential hint "security-key" when using cross-platform mode.

Note that all of this is specific to users running tsh --mfa-mode=cross-platform <command> (or equivalent). Other flows are unfiltered, meaning all options are there by default.

#62060

Changelog: Changed "tsh --mfa-mode=cross-platform" to favor security keys on current Windows versions

Comment thread lib/auth/webauthnwin/api.go
@codingllama
Copy link
Copy Markdown
Contributor Author

Thanks for the quick reviews!

@codingllama codingllama added this pull request to the merge queue Dec 10, 2025
Merged via the queue into master with commit 81816c0 Dec 10, 2025
42 checks passed
@codingllama codingllama deleted the codingllama/wanwin-cross-platform branch December 10, 2025 13:31
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@codingllama See the table below for backport results.

Branch Result
branch/v17 Failed
branch/v18 Create PR

codingllama added a commit that referenced this pull request Dec 10, 2025
…ows (#62105)

* Update WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS to version 9

* Set the security-key hint when using cross-platform mode on Windows

* Appease linter

* Fix tests
github-merge-queue bot pushed a commit that referenced this pull request Dec 11, 2025
…n Windows (#62136)

* Convert lib/auth/webauthn* to use slog (#50510) (partial)

* fix: Set the security-key hint when using cross-platform mode on Windows (#62105)

* Update WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS to version 9

* Set the security-key hint when using cross-platform mode on Windows

* Appease linter

* Fix tests

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
21KennethTran pushed a commit that referenced this pull request Jan 6, 2026
…ows (#62105)

* Update WEBAUTHN_AUTHENTICATOR_GET_ASSERTION_OPTIONS to version 9

* Set the security-key hint when using cross-platform mode on Windows

* Appease linter

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants