SDKS-5212 Add preferImmediatelyAvailableCredentials option to FIDO authentication#173
Open
george-bafaloukas-forgerock wants to merge 3 commits into
Open
Conversation
…thentication Restricts the FIDO authentication ceremony to locally-available credentials (no QR / nearby-device fallback), matching the legacy FRWebAuthnManager behavior. Exposed on Fido.authenticate, FidoAuthenticationCollector.authenticate (DaVinci), and FidoAuthenticationCallback.authenticate (Journey); defaults to false to preserve existing behavior. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Falls back to options.user.name only when displayName is empty, matching request.displayName which already used displayName unconditionally. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
witrisna
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
SDKS-5212
Description
Adds a
preferImmediatelyAvailableCredentialsoption to FIDO authentication, restricting the ceremony to locally-available credentials (no QR / nearby-device fallback), matching the legacyFRWebAuthnManager.signInWith(preferImmediatelyAvailableCredentials:)behavior.Exposed on:
Fido.authenticate(core)FidoAuthenticationCollector.authenticate(DaVinci)FidoAuthenticationCallback.authenticate(Journey)Defaults to
falseto preserve existing behavior. Whentrue, the security-key (cross-platform) request is not built, since a hardware key can never be "immediately available" on the local device, andperformRequests(options: .preferImmediatelyAvailableCredentials)is used to suppress the QR/nearby-device fallback UI.Also includes an unrelated pre-existing bug fix (
request.displayName = options.user.displayNameincreatePlatformRequest) so the WebAuthn Registration Node's configured display name is shown during passkey creation instead of falling back to the username.Sample app (
FidoAuthenticationCallbackView/FidoAuthenticationCollectorView) exposes the new option via a "Local credentials only" toggle.Checklist: