Skip to content

Commit 35cef94

Browse files
committed
fixup! fixup! Revert new experimental interfaces and classes
1 parent aabacc5 commit 35cef94

File tree

1 file changed

+36
-38
lines changed

1 file changed

+36
-38
lines changed

webauthn-server-core/src/test/scala/com/yubico/webauthn/RelyingPartyAssertionSpec.scala

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,25 +1662,24 @@ class RelyingPartyAssertionSpec
16621662
backupFlagsGen = arbitrary[Boolean].map(bs => (true, bs)),
16631663
)
16641664
) { authData =>
1665-
val step: FinishAssertionSteps#PendingStep16 =
1666-
finishAssertion(
1667-
authenticatorData = authData,
1668-
credentialRepository = Some(
1669-
Helpers.CredentialRepository.withUser(
1670-
Defaults.user,
1671-
RegisteredCredential
1672-
.builder()
1673-
.credentialId(Defaults.credentialId)
1674-
.userHandle(Defaults.userHandle)
1675-
.publicKeyCose(
1676-
getPublicKeyBytes(Defaults.credentialKey)
1677-
)
1678-
.backupEligible(false)
1679-
.backupState(false)
1680-
.build(),
1681-
)
1682-
),
1683-
).begin.next.next.next.next.next.next.next.next.next.next.next.next
1665+
val step: FinishAssertionSteps#PendingStep16 = finishAssertion(
1666+
authenticatorData = authData,
1667+
credentialRepository = Some(
1668+
Helpers.CredentialRepository.withUser(
1669+
Defaults.user,
1670+
RegisteredCredential
1671+
.builder()
1672+
.credentialId(Defaults.credentialId)
1673+
.userHandle(Defaults.userHandle)
1674+
.publicKeyCose(
1675+
getPublicKeyBytes(Defaults.credentialKey)
1676+
)
1677+
.backupEligible(false)
1678+
.backupState(false)
1679+
.build(),
1680+
)
1681+
),
1682+
).begin.next.next.next.next.next.next.next.next.next.next.next.next
16841683

16851684
step.validations shouldBe a[Failure[_]]
16861685
step.validations.failed.get shouldBe an[IllegalArgumentException]
@@ -1700,25 +1699,24 @@ class RelyingPartyAssertionSpec
17001699
arbitrary[Boolean],
17011700
) {
17021701
case (authData, storedBs) =>
1703-
val step: FinishAssertionSteps#PendingStep16 =
1704-
finishAssertion(
1705-
authenticatorData = authData,
1706-
credentialRepository = Some(
1707-
Helpers.CredentialRepository.withUser(
1708-
Defaults.user,
1709-
RegisteredCredential
1710-
.builder()
1711-
.credentialId(Defaults.credentialId)
1712-
.userHandle(Defaults.userHandle)
1713-
.publicKeyCose(
1714-
getPublicKeyBytes(Defaults.credentialKey)
1715-
)
1716-
.backupEligible(true)
1717-
.backupState(storedBs)
1718-
.build(),
1719-
)
1720-
),
1721-
).begin.next.next.next.next.next.next.next.next.next.next.next.next
1702+
val step: FinishAssertionSteps#PendingStep16 = finishAssertion(
1703+
authenticatorData = authData,
1704+
credentialRepository = Some(
1705+
Helpers.CredentialRepository.withUser(
1706+
Defaults.user,
1707+
RegisteredCredential
1708+
.builder()
1709+
.credentialId(Defaults.credentialId)
1710+
.userHandle(Defaults.userHandle)
1711+
.publicKeyCose(
1712+
getPublicKeyBytes(Defaults.credentialKey)
1713+
)
1714+
.backupEligible(true)
1715+
.backupState(storedBs)
1716+
.build(),
1717+
)
1718+
),
1719+
).begin.next.next.next.next.next.next.next.next.next.next.next.next
17221720

17231721
step.validations shouldBe a[Failure[_]]
17241722
step.validations.failed.get shouldBe an[

0 commit comments

Comments
 (0)