Skip to content

Commit

Permalink
Update MetadataStatement to include friendly names
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 committed Sep 10, 2024
1 parent cb71a15 commit 9ac4a59
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Src/Fido2.Models/Metadata/MetadataStatement.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace Fido2NetLib;
Expand All @@ -7,7 +7,7 @@ namespace Fido2NetLib;
/// Represents the metadata statement.
/// </summary>
/// <remarks>
/// <see href="https://fidoalliance.org/specs/fido-v2.0-rd-20180702/fido-metadata-statement-v2.0-rd-20180702.html#metadata-keys"/>
/// <see href="https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html"/>
/// </remarks>
public class MetadataStatement
{
Expand Down Expand Up @@ -48,6 +48,12 @@ public class MetadataStatement
[JsonPropertyName("description"), Required]
public string Description { get; set; }

/// <summary>
/// Gets or sets a human-readable, short description of the authenticator, in alternative languages.
/// </summary>
[JsonPropertyName("friendlyNames")]
public IDictionary<string, string> FriendlyNames { get; set; }

/// <summary>
/// Gets or set a list of human-readable short descriptions of the authenticator in different languages.
/// </summary>
Expand Down

0 comments on commit 9ac4a59

Please sign in to comment.