Skip to content

Commit ce0f0b1

Browse files
committed
API cleanups
1 parent 2636c5e commit ce0f0b1

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/Identity/Core/src/SignInManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ public virtual async Task<PasskeyRequestOptions> ConfigurePasskeyRequestOptionsA
654654
}
655655

656656
/// <summary>
657-
/// Generates a <see cref="PasskeyCreationOptions"/> to request an existing passkey for a user.
657+
/// Generates a <see cref="PasskeyRequestOptions"/> to request an existing passkey for a user.
658658
/// </summary>
659659
/// <param name="requestArgs">Args for configuring the <see cref="PasskeyRequestOptions"/>.</param>
660660
/// <returns>

src/Identity/Extensions.Core/src/PublicAPI.Unshipped.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ Microsoft.AspNetCore.Identity.UserPasskeyInfo.AttestationObject.get -> byte[]!
4545
Microsoft.AspNetCore.Identity.UserPasskeyInfo.ClientDataJson.get -> byte[]!
4646
Microsoft.AspNetCore.Identity.UserPasskeyInfo.CreatedAt.get -> System.DateTimeOffset
4747
Microsoft.AspNetCore.Identity.UserPasskeyInfo.CredentialId.get -> byte[]!
48+
Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsBackedUp.get -> bool
49+
Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsBackedUp.set -> void
50+
Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsBackupEligible.get -> bool
51+
Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsUserVerified.get -> bool
52+
Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsUserVerified.set -> void
4853
Microsoft.AspNetCore.Identity.UserPasskeyInfo.Name.get -> string?
4954
Microsoft.AspNetCore.Identity.UserPasskeyInfo.Name.set -> void
5055
Microsoft.AspNetCore.Identity.UserPasskeyInfo.PublicKey.get -> byte[]!
@@ -59,8 +64,3 @@ virtual Microsoft.AspNetCore.Identity.UserManager<TUser>.GetPasskeysAsync(TUser!
5964
virtual Microsoft.AspNetCore.Identity.UserManager<TUser>.RemovePasskeyAsync(TUser! user, byte[]! credentialId) -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult!>!
6065
virtual Microsoft.AspNetCore.Identity.UserManager<TUser>.SetPasskeyAsync(TUser! user, Microsoft.AspNetCore.Identity.UserPasskeyInfo! passkey) -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult!>!
6166
virtual Microsoft.AspNetCore.Identity.UserManager<TUser>.SupportsUserPasskey.get -> bool
62-
virtual Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsBackedUp.get -> bool
63-
virtual Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsBackedUp.set -> void
64-
virtual Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsBackupEligible.get -> bool
65-
virtual Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsUserVerified.get -> bool
66-
virtual Microsoft.AspNetCore.Identity.UserPasskeyInfo.IsUserVerified.set -> void

src/Identity/Extensions.Core/src/UserPasskeyInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ public UserPasskeyInfo(
5353
/// <summary>
5454
/// Gets the credential ID for this passkey.
5555
/// </summary>
56-
public byte[] CredentialId { get; } = [];
56+
public byte[] CredentialId { get; }
5757

5858
/// <summary>
5959
/// Gets the public key associated with this passkey.
6060
/// </summary>
61-
public byte[] PublicKey { get; } = [];
61+
public byte[] PublicKey { get; }
6262

6363
/// <summary>
6464
/// Gets or sets the friendly name for this passkey.
@@ -86,17 +86,17 @@ public UserPasskeyInfo(
8686
/// <summary>
8787
/// Gets or sets whether the passkey has a verified user.
8888
/// </summary>
89-
public virtual bool IsUserVerified { get; set; }
89+
public bool IsUserVerified { get; set; }
9090

9191
/// <summary>
9292
/// Gets whether the passkey is eligible for backup.
9393
/// </summary>
94-
public virtual bool IsBackupEligible { get; }
94+
public bool IsBackupEligible { get; }
9595

9696
/// <summary>
9797
/// Gets or sets whether the passkey is currently backed up.
9898
/// </summary>
99-
public virtual bool IsBackedUp { get; set; }
99+
public bool IsBackedUp { get; set; }
100100

101101
/// <summary>
102102
/// Gets the attestation object associated with this passkey.

src/Identity/Extensions.Stores/src/IdentityUserPasskey.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public class IdentityUserPasskey<TKey> where TKey : IEquatable<TKey>
2222
/// <summary>
2323
/// Gets or sets the credential ID for this passkey.
2424
/// </summary>
25-
public virtual byte[] CredentialId { get; set; } = [];
25+
public virtual byte[] CredentialId { get; set; } = default!;
2626

2727
/// <summary>
2828
/// Gets or sets the public key associated with this passkey.
2929
/// </summary>
30-
public virtual byte[] PublicKey { get; set; } = [];
30+
public virtual byte[] PublicKey { get; set; } = default!;
3131

3232
/// <summary>
3333
/// Gets or sets the friendly name for this passkey.
@@ -73,13 +73,13 @@ public class IdentityUserPasskey<TKey> where TKey : IEquatable<TKey>
7373
/// <remarks>
7474
/// See <see href="https://www.w3.org/TR/webauthn-3/#attestation-object"/>.
7575
/// </remarks>
76-
public virtual byte[] AttestationObject { get; set; } = [];
76+
public virtual byte[] AttestationObject { get; set; } = default!;
7777

7878
/// <summary>
7979
/// Gets or sets the collected client data JSON associated with this passkey.
8080
/// </summary>
8181
/// <remarks>
8282
/// See <see href="https://www.w3.org/TR/webauthn-3/#dictdef-collectedclientdata"/>.
8383
/// </remarks>
84-
public virtual byte[] ClientDataJson { get; set; } = [];
84+
public virtual byte[] ClientDataJson { get; set; } = default!;
8585
}

0 commit comments

Comments
 (0)