File: Passkeys\TokenBinding.cs
Web Access
Project: src\src\Identity\Core\src\Microsoft.AspNetCore.Identity.csproj (Microsoft.AspNetCore.Identity)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Identity;
 
/// <summary>
/// Contains information about the state of the token binding protocol.
/// </summary>
/// <remarks>
/// See <see href="https://www.w3.org/TR/webauthn-3/#dictdef-tokenbinding"/>.
/// </remarks>
internal sealed class TokenBinding
{
    /// <summary>
    /// Gets or sets the token binding status.
    /// </summary>
    /// <remarks>
    /// Supported values are "supported", "present", and "not-supported".
    /// See <see href="https://www.w3.org/TR/webauthn-3/#dom-tokenbinding-status"/>.
    /// </remarks>
    public required string Status { get; init; }
 
    /// <summary>
    /// Gets or sets the token binding ID.
    /// </summary>
    /// <remarks>
    /// See <see href="https://www.w3.org/TR/webauthn-3/#dom-tokenbinding-id"/>.
    /// </remarks>
    public string? Id { get; init; }
}