Skip to content

Commit e528ca5

Browse files
committed
Test that unknown properties are accepted in credProps extension
1 parent a3698be commit e528ca5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,20 @@ class RelyingPartyRegistrationSpec
258258
},
259259
"clientExtensionResults": {
260260
"appidExclude": true,
261-
"org.example.foo": "bar"
261+
"org.example.foo": "bar",
262+
"credProps": {
263+
"rk": false,
264+
"unknownProperty": ["unknown-value"]
265+
}
262266
}
263267
}""")
264268
pkc.getClientExtensionResults.getExtensionIds should contain(
265269
"appidExclude"
266270
)
271+
pkc.getClientExtensionResults.getExtensionIds should contain(
272+
"credProps"
273+
)
274+
pkc.getClientExtensionResults.getExtensionIds should not contain ("org.example.foo")
267275
}
268276
}
269277

0 commit comments

Comments
 (0)