Skip to content

Commit bff7968

Browse files
committed
Add missing properties in asRegistrationTestData
1 parent 3abf49f commit bff7968

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ object RealExamples {
110110
attestationObject = attestation.attestationObjectBytes,
111111
clientDataJson = attestation.clientData,
112112
privateKey = None,
113+
rpId = rp,
114+
userId = user,
113115
assertion = Some(
114116
AssertionTestData(
115117
request = AssertionRequest
@@ -120,6 +122,7 @@ object RealExamples {
120122
.challenge(assertion.collectedClientData.getChallenge)
121123
.build()
122124
)
125+
.username(user.getName)
123126
.build(),
124127
response = assertion.credential,
125128
)

0 commit comments

Comments
 (0)