Skip to content

Commit 1890086

Browse files
committed
format
1 parent 0e768e1 commit 1890086

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

BlazorWasmDemo/Server/Controllers/UserController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public async Task<string> MakeAssertionAsync([FromBody] AuthenticatorAssertionRa
274274
var res = await _fido2.MakeAssertionAsync(new MakeAssertionParams
275275
{
276276
AssertionResponse = clientResponse,
277-
OriginalOptions = options,
277+
OriginalOptions = options,
278278
StoredPublicKey = creds.PublicKey,
279279
StoredSignatureCounter = creds.SignCount,
280280
IsUserHandleOwnerOfCredentialIdCallback = UserHandleOwnerOfCredentialIdAsync,

Demo/Controller.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ public async Task<JsonResult> MakeAssertion([FromBody] AuthenticatorAssertionRaw
209209
};
210210

211211
// 5. Make the assertion
212-
var res = await _fido2.MakeAssertionAsync(new MakeAssertionParams {
212+
var res = await _fido2.MakeAssertionAsync(new MakeAssertionParams
213+
{
213214
AssertionResponse = clientResponse,
214215
OriginalOptions = options,
215216
StoredPublicKey = creds.PublicKey,

Src/Fido2/MakeAssertionParams.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class MakeAssertionParams
1111
/// <summary>
1212
/// The assertion response from the authenticator.
1313
/// </summary>
14-
public required AuthenticatorAssertionRawResponse AssertionResponse { get; init; }
14+
public required AuthenticatorAssertionRawResponse AssertionResponse { get; init; }
1515

1616
/// <summary>
1717
/// The original options that was sent to the client.
@@ -22,7 +22,7 @@ public class MakeAssertionParams
2222
/// The stored credential public key.
2323
/// </summary>
2424
public required byte[] StoredPublicKey { get; init; }
25-
25+
2626
/// <summary>
2727
/// The stored value of the signature counter.
2828
/// </summary>
@@ -36,7 +36,7 @@ public class MakeAssertionParams
3636
/// <summary>
3737
/// The stored device public keys.
3838
/// </summary>
39-
public IReadOnlyList<byte[]> StoredDevicePublicKeys { get; init; } = Array.Empty<byte[]>();
39+
public IReadOnlyList<byte[]> StoredDevicePublicKeys { get; init; } = Array.Empty<byte[]>();
4040

4141

4242
/// <summary>

Src/Fido2/MakeNewCredentialParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class MakeNewCredentialParams
1313
/// <summary>
1414
/// The original options that was sent to the client.
1515
/// </summary>
16-
public required CredentialCreateOptions OriginalOptions { get; init; }
16+
public required CredentialCreateOptions OriginalOptions { get; init; }
1717

1818
/// <summary>
1919
/// The delegate used to validate that the CredentialID is unique to this user.

Test/ExistingU2fRegistrationDataTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public async Task TestFido2AssertionWithExistingU2fRegistrationWithAppId()
5555
Origins = new HashSet<string> { "https://localhost:44336" } //data was generated with this origin
5656
});
5757

58-
var credential = await fido2.MakeAssertionAsync(new MakeAssertionParams {
59-
58+
var credential = await fido2.MakeAssertionAsync(new MakeAssertionParams
59+
{
60+
6061
AssertionResponse = authResponse,
6162
OriginalOptions = options,
6263
StoredPublicKey = publicKey.Encode(),

0 commit comments

Comments
 (0)