The 2.0 release of the webauthn-server-core module
removes some deprecated features
and completely replaces the optional subsystem for attestation metadata.
This guide aims to help migrating between versions.
If you find this migration guide to be incomplete, incorrect,
or otherwise difficult to follow, please
let us know!
This is the migration guide for the core library.
The webauthn-server-attestation module has
its own migration guide.
Here is a high-level outline of what needs to be updated:
-
Replace dependency on webauthn-server-core-minimal with
webauthn-server-core.
-
If using JDK 14 or earlier, add a JCA provider for the EdDSA algorithms.
-
Remove uses of removed features.
-
Update uses of renamed and replaced features.
-
Replace any implementations of MetadataService with
AttestationTrustSource.
-
Rename imports of classes in com.yubico.fido.metadata.
-
Update getUserVerification() and getResidentKey() calls
to expect Optional values.
Although the next section references version 2.4.0-RC2 for reasons detailed there,
this migration guide is written for version 2.0.0 of the
webauthn-server-core module. Later 2.x versions may introduce new features
but should remain compatible without further changes; please consult the
release notes
for an up to date list of new features.