Skip to content

Commit

Permalink
Drop WindowsHello prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpassing committed Mar 15, 2024
1 parent 5b8271a commit 8f7e64a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public class TestGetWindowsHelloCapabilities
[Test]
public void Execute()
{
var cmdlet = new GetWindowsHelloCapabilities();
var cmdlet = new GetWebAuthnCapabilities();
var capabilities = CmdletAssert
.WritesSingleObject<GetWindowsHelloCapabilities.Capabilities>(cmdlet);
.WritesSingleObject<GetWebAuthnCapabilities.Capabilities>(cmdlet);

AssertThat.AreNotEqual(0, capabilities.ApiVersionNumber);
AssertThat.AreNotEqual(0, capabilities.WindowsHelloApiVersionNumber);
}
}
}
3 changes: 0 additions & 3 deletions sources/Jpki.Powershell/Jpki.Powershell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<ItemGroup>
<None Remove="Security\WebAuthn\NewBrowserWebAuthnCredential.html" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Security\WebAuthn\NewBrowserWebAuthnCredential.html" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
namespace Jpki.Powershell.Security.WebAuthn
{
/// <summary>
/// Return basic capability information about WindowsHello.
/// Return basic capability information about WebAuthn.
/// </summary>
[Cmdlet(VerbsCommon.Get, "WindowsHelloCapabilities")]
public class GetWindowsHelloCapabilities
: AsyncCmdletBase<GetWindowsHelloCapabilities.Capabilities>
[Cmdlet(VerbsCommon.Get, "WebAuthnCapabilities")]
public class GetWebAuthnCapabilities
: AsyncCmdletBase<GetWebAuthnCapabilities.Capabilities>
{
protected override Task<Capabilities> ProcessRecordAsync(
CancellationToken cancellationToken)
Expand All @@ -41,15 +41,15 @@ protected override Task<Capabilities> ProcessRecordAsync(
{
IsPlatformAuthenticatorAvailable = Authenticators.IsPlatformAuthenticatorAvailable,
#if WINDOWS || NETFRAMEWORK
ApiVersionNumber = WindowsHello.ApiVersion,
WindowsHelloApiVersionNumber = Jpki.Security.WebAuthn.Windows.WindowsHello.ApiVersion,
#endif
});
}

public class Capabilities
{
public bool IsPlatformAuthenticatorAvailable { get; internal set; }
public uint ApiVersionNumber { get; internal set; }
public uint WindowsHelloApiVersionNumber { get; internal set; }
}
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using Jpki.Powershell.Runtime;
using Jpki.Security.Cryptography.Cose;
using Jpki.Security.WebAuthn;
using Jpki.Security.WebAuthn.Windows;
using System;
using System.Management.Automation;
using System.Text;
Expand All @@ -32,10 +31,10 @@
namespace Jpki.Powershell.Security.WebAuthn
{
/// <summary>
/// Create a new WebAuthn credential using Windows Hello.
/// Create a new WebAuthn credential.
/// </summary>
[Cmdlet(VerbsCommon.New, "WindowsHelloWebAuthnCredential")]
public class NewWindowsHelloWebAuthnCredential : AsyncCmdletBase<Credential>
[Cmdlet(VerbsCommon.New, "WebAuthnCredential")]
public class NewWebAuthnCredential : AsyncCmdletBase<Credential>
{
private const string SimpleParameterSet = null;
private const string DetailedParameterSet = null;
Expand Down

0 comments on commit 8f7e64a

Please sign in to comment.