|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Text.Json;
namespace IdentitySample.PasskeyConformance.Data;
internal sealed class ServerPublicKeyCredentialCreationOptionsRequest(string username, string displayName)
{
public string Username { get; } = username;
public string DisplayName { get; } = displayName;
public AuthenticatorSelectionCriteria? AuthenticatorSelection { get; set; }
public JsonElement? Extensions { get; set; }
public string? Attestation { get; set; } = "none";
internal sealed class AuthenticatorSelectionCriteria
{
public string? ResidentKey { get; set; }
public string? AuthenticatorAttachment { get; set; }
public string? UserVerification { get; set; }
}
}
|