File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed
BlazorWasmDemo/Server/Controllers Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ public async Task<string> MakeAssertionAsync([FromBody] AuthenticatorAssertionRa
274
274
var res = await _fido2 . MakeAssertionAsync ( new MakeAssertionParams
275
275
{
276
276
AssertionResponse = clientResponse ,
277
- OriginalOptions = options ,
277
+ OriginalOptions = options ,
278
278
StoredPublicKey = creds . PublicKey ,
279
279
StoredSignatureCounter = creds . SignCount ,
280
280
IsUserHandleOwnerOfCredentialIdCallback = UserHandleOwnerOfCredentialIdAsync ,
Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ public async Task<JsonResult> MakeAssertion([FromBody] AuthenticatorAssertionRaw
209
209
} ;
210
210
211
211
// 5. Make the assertion
212
- var res = await _fido2 . MakeAssertionAsync ( new MakeAssertionParams {
212
+ var res = await _fido2 . MakeAssertionAsync ( new MakeAssertionParams
213
+ {
213
214
AssertionResponse = clientResponse ,
214
215
OriginalOptions = options ,
215
216
StoredPublicKey = creds . PublicKey ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public class MakeAssertionParams
11
11
/// <summary>
12
12
/// The assertion response from the authenticator.
13
13
/// </summary>
14
- public required AuthenticatorAssertionRawResponse AssertionResponse { get ; init ; }
14
+ public required AuthenticatorAssertionRawResponse AssertionResponse { get ; init ; }
15
15
16
16
/// <summary>
17
17
/// The original options that was sent to the client.
@@ -22,7 +22,7 @@ public class MakeAssertionParams
22
22
/// The stored credential public key.
23
23
/// </summary>
24
24
public required byte [ ] StoredPublicKey { get ; init ; }
25
-
25
+
26
26
/// <summary>
27
27
/// The stored value of the signature counter.
28
28
/// </summary>
@@ -36,7 +36,7 @@ public class MakeAssertionParams
36
36
/// <summary>
37
37
/// The stored device public keys.
38
38
/// </summary>
39
- public IReadOnlyList < byte [ ] > StoredDevicePublicKeys { get ; init ; } = Array . Empty < byte [ ] > ( ) ;
39
+ public IReadOnlyList < byte [ ] > StoredDevicePublicKeys { get ; init ; } = Array . Empty < byte [ ] > ( ) ;
40
40
41
41
42
42
/// <summary>
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class MakeNewCredentialParams
13
13
/// <summary>
14
14
/// The original options that was sent to the client.
15
15
/// </summary>
16
- public required CredentialCreateOptions OriginalOptions { get ; init ; }
16
+ public required CredentialCreateOptions OriginalOptions { get ; init ; }
17
17
18
18
/// <summary>
19
19
/// The delegate used to validate that the CredentialID is unique to this user.
Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ public async Task TestFido2AssertionWithExistingU2fRegistrationWithAppId()
55
55
Origins = new HashSet < string > { "https://localhost:44336" } //data was generated with this origin
56
56
} ) ;
57
57
58
- var credential = await fido2 . MakeAssertionAsync ( new MakeAssertionParams {
59
-
58
+ var credential = await fido2 . MakeAssertionAsync ( new MakeAssertionParams
59
+ {
60
+
60
61
AssertionResponse = authResponse ,
61
62
OriginalOptions = options ,
62
63
StoredPublicKey = publicKey . Encode ( ) ,
You can’t perform that action at this time.
0 commit comments