Skip to content

Commit f6903a8

Browse files
iamcarbonabergs
authored andcommitted
React to AaGuid rename
1 parent 7b69f54 commit f6903a8

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

Demo/Controller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public async Task<JsonResult> MakeCredential([FromBody] AuthenticatorAttestation
123123
SignatureCounter = success.Result.Counter,
124124
CredType = success.Result.CredType,
125125
RegDate = DateTime.Now,
126-
AaGuid = success.Result.Aaguid
126+
AaGuid = success.Result.AaGuid
127127
});
128128

129129
// Remove Certificates from success because System.Text.Json cannot serialize them properly. See https://github.com/passwordless-lib/fido2-net-lib/issues/328

Src/Fido2/AuthenticatorAttestationResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static bool ContainsAttestationType(MetadataBLOBPayloadEntry entry, MetadataAtte
241241
User = originalOptions.User,
242242
Counter = authData.SignCount,
243243
CredType = AttestationObject.Fmt,
244-
Aaguid = authData.AttestedCredentialData.AaGuid,
244+
AaGuid = authData.AttestedCredentialData.AaGuid,
245245
AttestationCertificate = trustPath?.FirstOrDefault(),
246246
AttestationCertificateChain = trustPath ?? Array.Empty<X509Certificate2>(),
247247
};

Test/Attestation/AndroidKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public async void TestAndroidKey()
6666
var res = await MakeAttestationResponseAsync();
6767
Assert.Equal(string.Empty, res.ErrorMessage);
6868
Assert.Equal("ok", res.Status);
69-
Assert.Equal(_aaguid, res.Result.Aaguid);
69+
Assert.Equal(_aaguid, res.Result.AaGuid);
7070
Assert.Equal(_signCount, res.Result.Counter);
7171
Assert.Equal("android-key", res.Result.CredType);
7272
Assert.Equal(_credentialID, res.Result.CredentialId);

Test/Attestation/AndroidSafetyNet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public async void TestAndroidSafetyNet()
103103
var res = await MakeAttestationResponseAsync();
104104
Assert.Equal(string.Empty, res.ErrorMessage);
105105
Assert.Equal("ok", res.Status);
106-
Assert.Equal(_aaguid, res.Result.Aaguid);
106+
Assert.Equal(_aaguid, res.Result.AaGuid);
107107
Assert.Equal(_signCount, res.Result.Counter);
108108
Assert.Equal("android-safetynet", res.Result.CredType);
109109
Assert.Equal(_credentialID, res.Result.CredentialId);
@@ -192,7 +192,7 @@ public async void TestAndroidSafetyNetRSA()
192192
var res = await MakeAttestationResponseAsync();
193193
Assert.Equal(string.Empty, res.ErrorMessage);
194194
Assert.Equal("ok", res.Status);
195-
Assert.Equal(_aaguid, res.Result.Aaguid);
195+
Assert.Equal(_aaguid, res.Result.AaGuid);
196196
Assert.Equal(_signCount, res.Result.Counter);
197197
Assert.Equal("android-safetynet", res.Result.CredType);
198198
Assert.Equal(_credentialID, res.Result.CredentialId);

Test/Attestation/FidoU2f.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public async void TestU2f()
5858
var res = await MakeAttestationResponseAsync();
5959
Assert.Equal(string.Empty, res.ErrorMessage);
6060
Assert.Equal("ok", res.Status);
61-
Assert.Equal(_aaguid, res.Result.Aaguid);
61+
Assert.Equal(_aaguid, res.Result.AaGuid);
6262
Assert.Equal(_signCount, res.Result.Counter);
6363
Assert.Equal("fido-u2f", res.Result.CredType);
6464
Assert.Equal(_credentialID, res.Result.CredentialId);

Test/Attestation/None.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void TestNone()
3232

3333
Assert.Equal(string.Empty, res.ErrorMessage);
3434
Assert.Equal("ok", res.Status);
35-
Assert.Equal(_aaguid, res.Result.Aaguid);
35+
Assert.Equal(_aaguid, res.Result.AaGuid);
3636
Assert.Equal(_signCount, res.Result.Counter);
3737
Assert.Equal("none", res.Result.CredType);
3838
Assert.Equal(_credentialID, res.Result.CredentialId);

Test/Attestation/Packed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void TestSelf()
4040

4141
Assert.Equal(string.Empty, res.ErrorMessage);
4242
Assert.Equal("ok", res.Status);
43-
Assert.Equal(_aaguid, res.Result.Aaguid);
43+
Assert.Equal(_aaguid, res.Result.AaGuid);
4444
Assert.Equal(_signCount, res.Result.Counter);
4545
Assert.Equal("packed", res.Result.CredType);
4646
Assert.Equal(_credentialID, res.Result.CredentialId);
@@ -329,7 +329,7 @@ public void TestFull()
329329
}
330330
Assert.Equal(string.Empty, res.ErrorMessage);
331331
Assert.Equal("ok", res.Status);
332-
Assert.Equal(_aaguid, res.Result.Aaguid);
332+
Assert.Equal(_aaguid, res.Result.AaGuid);
333333
Assert.Equal(_signCount, res.Result.Counter);
334334
Assert.Equal("packed", res.Result.CredType);
335335
Assert.Equal(_credentialID, res.Result.CredentialId);

Test/Attestation/Tpm.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void TestTPM()
303303

304304
Assert.Equal(string.Empty, res.ErrorMessage);
305305
Assert.Equal("ok", res.Status);
306-
Assert.Equal(_aaguid, res.Result.Aaguid);
306+
Assert.Equal(_aaguid, res.Result.AaGuid);
307307
Assert.Equal(_signCount, res.Result.Counter);
308308
Assert.Equal("tpm", res.Result.CredType);
309309
Assert.Equal(_credentialID, res.Result.CredentialId);
@@ -425,7 +425,7 @@ public void TestTPMAikCertSANTCGConformant()
425425

426426
Assert.Equal(string.Empty, res.ErrorMessage);
427427
Assert.Equal("ok", res.Status);
428-
Assert.Equal(_aaguid, res.Result.Aaguid);
428+
Assert.Equal(_aaguid, res.Result.AaGuid);
429429
Assert.Equal(_signCount, res.Result.Counter);
430430
Assert.Equal("tpm", res.Result.CredType);
431431
Assert.Equal(_credentialID, res.Result.CredentialId);
@@ -5258,7 +5258,7 @@ public async void TestTPMAikCertMisingAAGUID()
52585258

52595259
Assert.Equal(string.Empty, res.ErrorMessage);
52605260
Assert.Equal("ok", res.Status);
5261-
Assert.Equal(_aaguid, res.Result.Aaguid);
5261+
Assert.Equal(_aaguid, res.Result.AaGuid);
52625262
Assert.Equal(_signCount, res.Result.Counter);
52635263
Assert.Equal("tpm", res.Result.CredType);
52645264
Assert.Equal(_credentialID, res.Result.CredentialId);

0 commit comments

Comments
 (0)