You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/servlet/authentication/passkeys.adoc
+43
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,49 @@ open fun userDetailsService(): UserDetailsService {
118
118
----
119
119
======
120
120
121
+
122
+
[[passkeys-configuration-persistence]]
123
+
=== JDBC & Custom Persistence
124
+
125
+
WebAuthn performs persistence with javadoc:org.springframework.security.web.webauthn.management.PublicKeyCredentialUserEntityRepository[] and javadoc:org.springframework.security.web.webauthn.management.UserCredentialRepository[].
126
+
The default is to use in memory persistence, but JDBC persistence is support with javadoc:org.springframework.security.web.webauthn.management.JdbcPublicKeyCredentialUserEntityRepository[] and javadoc:org.springframework.security.web.webauthn.management.JdbcUserCredentialRepository[].
127
+
To configure JDBC based persistence, expose the repositories as a Bean:
fun jdbcUserCredentialRepository(jdbc: JdbcOperations): JdbcUserCredentialRepository {
157
+
return JdbcUserCredentialRepository(jdbc)
158
+
}
159
+
----
160
+
======
161
+
162
+
If JDBC does not meet your needs, you can create your own implementations of the interfaces and use them by exposing them as a Bean similar to the example above.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/whats-new.adoc
+1
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,6 @@ Note that this may affect reports that operate on this key name.
17
17
18
18
== WebAuthn
19
19
20
+
* https://github.com/spring-projects/spring-security/pull/16282[gh-16282] - xref:servlet/authentication/passkeys.adoc#passkeys-configuration-persistence[JDBC Persistence] for WebAuthn/Passkeys
20
21
* 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.
21
22
* 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