From 1f9845485ce1e5ca46e6f48a86c3b4ab69deb174 Mon Sep 17 00:00:00 2001 From: Rob Winch <362503+rwinch@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:08:16 -0600 Subject: [PATCH] Document custom HttpMessageConverter support for WebAuthn Issue gh-16397 --- docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc | 2 ++ docs/modules/ROOT/pages/whats-new.adoc | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc b/docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc index 4e3f58607d..8f21a0cdb5 100644 --- a/docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc +++ b/docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc @@ -70,6 +70,7 @@ SecurityFilterChain filterChain(HttpSecurity http) { .allowedOrigins("https://example.com") // optional properties .creationOptionsRepository(new CustomPublicKeyCredentialCreationOptionsRepository()) + .messageConverter(new CustomHttpMessageConverter()) ); return http.build(); } @@ -100,6 +101,7 @@ open fun filterChain(http: HttpSecurity): SecurityFilterChain { allowedOrigins = setOf("https://example.com") // optional properties creationOptionsRepository = CustomPublicKeyCredentialCreationOptionsRepository() + messageConverter = CustomHttpMessageConverter() } } } diff --git a/docs/modules/ROOT/pages/whats-new.adoc b/docs/modules/ROOT/pages/whats-new.adoc index a07394496f..e9dd519510 100644 --- a/docs/modules/ROOT/pages/whats-new.adoc +++ b/docs/modules/ROOT/pages/whats-new.adoc @@ -17,4 +17,5 @@ Note that this may affect reports that operate on this key name. == WebAuthn +* https://github.com/spring-projects/spring-security/pull/16397[gh-16397] - Added the ability to configure a custom `HttpMessageConverter` for Passkeys using the optional xref:servlet/authentication/passkeys.adoc#passkeys-configuration[`messageConverter` property] on the `webAuthn` DSL. * https://github.com/spring-projects/spring-security/pull/16396[gh-16396] - Added the ability to configure a custom xref:servlet/authentication/passkeys.adoc#passkeys-configuration-pkccor[`PublicKeyCredentialCreationOptionsRepository`]