Repository navigation
Add support for FIDO Convenience MDS - #812
Merged
Merged
Conversation
MasterKale
commented
Oct 26, 2026
MasterKale
marked this pull request as ready for review
October 26, 2026 22:18
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.
This PR adds a new
ConvenienceMetadataServicethat enables RPs to leverage the FIDO Convenience Metadata Service (C-MDS). This service provides localized names and light and dark iconography for credential providers, keyed by the AAGUID they return from WebAuthn.create()calls. This service is intended to help Relying Parties display user-friendly names and icons in RP user self management portals when displaying a user's passkeys.By default, a bare call to
ConvenienceMetadataService.initialize()will now automatically query the FIDO Alliance's official service at https://c-mds.fidoalliance.org:Custom server URLs and local metadata can also be specified:
An AAGUID can be passed into the
ConvenienceMetadataService.getProviderMetadata()method to get the corresponding localized names and icons for that credential provider:Calls to
getProviderMetadata()will attempt to detect and refresh stale MDS data. Attempts to refresh data will avoid downloading anything when there's nothing new to download and retry a day later; error responses will defer the refresh attempt to a few hours later in case it's due to C-MDS server rate-limiting/transient issue/etc...Additionally,
verifyRegistrationResponse()will now try to include provider metadata asregistrationInfo.passkeyProviderMetadataifConvenienceMetadataServiceorMetadataServiceare initialized!Changes to MetadataService
For projects already using
MetadataService, an AAGUID can similarly be passed into the newMetadataService.getProviderMetadata()method to get the corresponding localized names and icons for that credential provider:This does not require use of
ConvenienceMetadataService, and in fact it's encouraged to only use one or the other based on the Relying Party's needs.MetadataServicewill similarly attempt to refresh stale metadata, and gracefully handle bad MDS server responses. Stale MDS metadata will continue to be served until the refresh can be attempted a few hours later. Refreshing an MDS blob that fails subsequent validation will still fail closed.Fixes #743.