Skip to content

Commit 1f98454

Browse files
committed
Document custom HttpMessageConverter support for WebAuthn
Issue gh-16397
1 parent a2abe3c commit 1f98454

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ SecurityFilterChain filterChain(HttpSecurity http) {
7070
.allowedOrigins("https://example.com")
7171
// optional properties
7272
.creationOptionsRepository(new CustomPublicKeyCredentialCreationOptionsRepository())
73+
.messageConverter(new CustomHttpMessageConverter())
7374
);
7475
return http.build();
7576
}
@@ -100,6 +101,7 @@ open fun filterChain(http: HttpSecurity): SecurityFilterChain {
100101
allowedOrigins = setOf("https://example.com")
101102
// optional properties
102103
creationOptionsRepository = CustomPublicKeyCredentialCreationOptionsRepository()
104+
messageConverter = CustomHttpMessageConverter()
103105
}
104106
}
105107
}

docs/modules/ROOT/pages/whats-new.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ Note that this may affect reports that operate on this key name.
1717

1818
== WebAuthn
1919

20+
* 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.
2021
* 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`]

0 commit comments

Comments
 (0)