You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webauthn-server-core/src/test/scala/com/yubico/webauthn/RelyingPartyAssertionSpec.scala
+92-5Lines changed: 92 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -329,9 +329,98 @@ class RelyingPartyAssertionSpec
329
329
330
330
}
331
331
332
-
describe("§7.2. Verifying an authentication assertion") {
332
+
describe("RelyingParty.finishAssertion") {
333
333
334
-
describe("When verifying a given PublicKeyCredential structure (credential) and an AuthenticationExtensionsClientOutputs structure clientExtensionResults, as part of an authentication ceremony, the Relying Party MUST proceed as follows:") {
334
+
it("does not make redundant calls to CredentialRepository.lookup().") {
result.getUserHandle should equal(registrationTestData.userId.getId)
418
+
result.getCredentialId should equal(registrationTestData.response.getId)
419
+
result.getCredentialId should equal(testData.response.getId)
420
+
credRepo.lookupCount should equal(1)
421
+
}
422
+
423
+
describe("§7.2. Verifying an authentication assertion: When verifying a given PublicKeyCredential structure (credential) and an AuthenticationExtensionsClientOutputs structure clientExtensionResults, as part of an authentication ceremony, the Relying Party MUST proceed as follows:") {
335
424
336
425
describe("1. If the allowCredentials option was given when this authentication ceremony was initiated, verify that credential.id identifies one of the public key credentials that were listed in allowCredentials.") {
337
426
it("Fails if returned credential ID is a requested one.") {
@@ -497,6 +586,7 @@ class RelyingPartyAssertionSpec
497
586
valstep: steps.Step3=new steps.Step3(
498
587
Defaults.username,
499
588
Defaults.userHandle,
589
+
None.asJava,
500
590
Nil.asJava,
501
591
)
502
592
@@ -523,9 +613,6 @@ class RelyingPartyAssertionSpec
0 commit comments