File: Data\PasskeyRegistrationRequest.cs
Web Access
Project: ..\..\..\src\aspnetcore\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.
 
using Microsoft.AspNetCore.Routing;
 
namespace Microsoft.AspNetCore.Identity.Data;
 
/// <summary>
/// The request type for the "/manage/passkeys" endpoint added by <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi"/>.
/// </summary>
public sealed class PasskeyRegistrationRequest
{
    /// <summary>
    /// The JSON-serialized credential returned by the browser's WebAuthn API.
    /// </summary>
    public required string CredentialJson { get; init; }
 
    /// <summary>
    /// The optional friendly name for the passkey.
    /// </summary>
    public string? Name { get; init; }
}