| File: PasskeyCreationOptionsResult.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. namespace Microsoft.AspNetCore.Identity; /// <summary> /// Represents the result of a passkey creation options generation. /// </summary> public sealed class PasskeyCreationOptionsResult { /// <summary> /// Gets or sets the JSON representation of the creation options. /// </summary> /// <remarks> /// The structure of this JSON is compatible with /// <see href="https://www.w3.org/TR/webauthn-3/#dictdef-publickeycredentialcreationoptionsjson"/> /// and should be used with the <c>navigator.credentials.create()</c> JavaScript API. /// </remarks> public required string CreationOptionsJson { get; init; } /// <summary> /// Gets or sets the state to be used in the attestation procedure. /// </summary> /// <remarks> /// This can be later retrieved during assertion with <see cref="PasskeyAttestationContext.AttestationState"/>. /// </remarks> public string? AttestationState { get; init; } }