Skip to content

Commit

Permalink
Document custom HttpMessageConverter support for WebAuthn
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Jan 18, 2025
1 parent a2abe3c commit 1f98454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ SecurityFilterChain filterChain(HttpSecurity http) {
.allowedOrigins("https://example.com")
// optional properties
.creationOptionsRepository(new CustomPublicKeyCredentialCreationOptionsRepository())
.messageConverter(new CustomHttpMessageConverter())
);
return http.build();
}
Expand Down Expand Up @@ -100,6 +101,7 @@ open fun filterChain(http: HttpSecurity): SecurityFilterChain {
allowedOrigins = setOf("https://example.com")
// optional properties
creationOptionsRepository = CustomPublicKeyCredentialCreationOptionsRepository()
messageConverter = CustomHttpMessageConverter()
}
}
}
Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/whats-new.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`]

0 comments on commit 1f98454

Please sign in to comment.