Skip to content

Commit c33f93a

Browse files
committed
Deprecate allowUnrequestedExtensions
1 parent a30239d commit c33f93a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

NEWS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
== Version 1.12.4 (unreleased) ==
2+
3+
Deprecated features:
4+
5+
* Option `RelyingParty.allowUnrequestedExtensions` deprecated. The `false`
6+
setting (default) is not compatible with WebAuthn Level 2 since authenticators
7+
are now always allowed to add unsolicited extensions. The next major version
8+
release will remove this option and always behave as if the option had been
9+
set to `true`.
10+
11+
112
== Version 1.12.3 (unreleased) ==
213

314
Fixes:

webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,13 @@ public class RelyingParty {
319319
*
320320
* @see <a href="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-extensions">§9. WebAuthn
321321
* Extensions</a>
322+
* @deprecated The <code>false</code> setting (default) is not compatible with WebAuthn Level 2
323+
* since authenticators are now always allowed to add unsolicited extensions. The next major
324+
* version release will remove this option and always behave as if the option had been set to
325+
* <code>
326+
* true</code>.
322327
*/
323-
@Builder.Default private final boolean allowUnrequestedExtensions = false;
328+
@Deprecated @Builder.Default private final boolean allowUnrequestedExtensions = false;
324329

325330
/**
326331
* If <code>false</code>, {@link #finishRegistration(FinishRegistrationOptions)

0 commit comments

Comments
 (0)