Skip to content

Commit 2ba3d99

Browse files
committed
Add missing test cases of ES384 and ES512 in default pubKeyCredParams
1 parent 9626ddd commit 2ba3d99

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4110,6 +4110,24 @@ class RelyingPartyRegistrationSpec
41104110
)
41114111
}
41124112

4113+
it("ES384.") {
4114+
pubKeyCredParams should contain(
4115+
PublicKeyCredentialParameters.ES384
4116+
)
4117+
pubKeyCredParams map (_.getAlg) should contain(
4118+
COSEAlgorithmIdentifier.ES384
4119+
)
4120+
}
4121+
4122+
it("ES512.") {
4123+
pubKeyCredParams should contain(
4124+
PublicKeyCredentialParameters.ES512
4125+
)
4126+
pubKeyCredParams map (_.getAlg) should contain(
4127+
COSEAlgorithmIdentifier.ES512
4128+
)
4129+
}
4130+
41134131
it("EdDSA, when available.") {
41144132
// The RelyingParty constructor call needs to be here inside the `it` call in order to have the right JCA provider environment
41154133
val rp = RelyingParty

0 commit comments

Comments
 (0)