@@ -26,10 +26,12 @@ Here is a high-level outline of what needs to be updated:
26
26
- Update `getUserVerification()` and `getResidentKey()` calls
27
27
to expect `Optional` values.
28
28
29
- This migration guide is written for version `2.0.0` of the
29
+ Although the next section references version `2.4.0-RC2` for reasons detailed there,
30
+ this migration guide is written for version `2.0.0` of the
30
31
`webauthn-server-core` module. Later `2.x` versions may introduce new features
31
- but should remain compatible without further changes; consult the release notes
32
- for a full list of new features.
32
+ but should remain compatible without further changes; please consult the
33
+ link:https://developers.yubico.com/java-webauthn-server/Release_Notes.html[release notes]
34
+ for an up to date list of new features.
33
35
34
36
35
37
== Replace dependency on `webauthn-server-core-minimal`
@@ -46,7 +48,7 @@ Maven example:
46
48
- <artifactId>webauthn-server-core-minimal</artifactId>
47
49
- <version>1.12.2</version>
48
50
+ <artifactId>webauthn-server-core</artifactId>
49
- + <version>2.0.0 </version>
51
+ + <version>2.4.0-RC2 </version>
50
52
<scope>compile</scope>
51
53
</dependency>
52
54
----------
@@ -56,10 +58,30 @@ Gradle:
56
58
[source,diff]
57
59
----------
58
60
-compile 'com.yubico:webauthn-server-core-minimal:1.12.2'
59
- +compile 'com.yubico:webauthn-server-core:2.0.0 '
61
+ +compile 'com.yubico:webauthn-server-core:2.4.0-RC2 '
60
62
----------
61
63
62
64
65
+ [WARNING]
66
+ .*Backwards-incompatible regression in versions 2.0.0 to 2.4.0-RC1*
67
+ ==========
68
+ Versions in the inclusive range `2.0.0` to `2.4.0-RC1` have
69
+ a backwards-incompatible regression in
70
+ link:https://developers.yubico.com/java-webauthn-server/JavaDoc/webauthn-server-core/latest/com/yubico/webauthn/data/PublicKeyCredentialCreationOptions.html#toCredentialsCreateJson()[`PublicKeyCredentialCreationOptions.toCredentialsCreateJson()`]:
71
+ When the
72
+ link:https://developers.yubico.com/java-webauthn-server/JavaDoc/webauthn-server-core/2.3.0/com/yubico/webauthn/StartRegistrationOptions.StartRegistrationOptionsBuilder.html#authenticatorSelection(com.yubico.webauthn.data.AuthenticatorSelectionCriteria)[`authenticatorSelection`].link:https://developers.yubico.com/java-webauthn-server/JavaDoc/webauthn-server-core/2.3.0/com/yubico/webauthn/data/AuthenticatorSelectionCriteria.AuthenticatorSelectionCriteriaBuilder.html#residentKey(com.yubico.webauthn.data.ResidentKeyRequirement)[`residentKey`]
73
+ parameter is set, a corresponding
74
+ link:https://www.w3.org/TR/webauthn-2/#dom-authenticatorselectioncriteria-requireresidentkey[`requireResidentKey`]
75
+ member is not emitted in the JSON output.
76
+ This is not backwards compatible with browsers that only support the
77
+ link:https://www.w3.org/TR/2019/REC-webauthn-1-20190304/#authenticatorSelection[Level 1 version of the WebAuthn spec].
78
+ The regression is fixed in version `2.4.0-RC2` and greater.
79
+ We therefore urge users to upgrade from versions `1.x` directly to `2.4.0-RC2` or greater to maintain backwards compatibility.
80
+ Please consult the link:https://developers.yubico.com/java-webauthn-server/Release_Notes.html[release notes]
81
+ for an up to date list of additional changes and new features added since version `2.0.0`.
82
+ ==========
83
+
84
+
63
85
== Add JCA provider for EdDSA
64
86
65
87
The library no longer depends explicitly on BouncyCastle for cryptography back-ends.
0 commit comments