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
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 ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments