-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triagedtype: bugA general bugA general bug
Description
Description
url -> https://docs.spring.io/spring-security/reference/servlet/authentication/passkeys.html
The Passkeys documentation shows JDBC persistence usage with JdbcPublicKeyCredentialUserEntityRepository and JdbcUserCredentialRepository, but the documented dependencies do not include the module containing these classes.
Steps to Reproduce
- Create a new Spring Boot 4.0.1 project
- Add dependencies as documented:
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation "com.webauthn4j:webauthn4j-core:0.29.7.RELEASE"- Add JDBC Repository beans as shown in documentation:
@Bean
JdbcPublicKeyCredentialUserEntityRepository jdbcPublicKeyCredentialRepository(JdbcOperations jdbc) {
return new JdbcPublicKeyCredentialUserEntityRepository(jdbc);
}
@Bean
JdbcUserCredentialRepository jdbcUserCredentialRepository(JdbcOperations jdbc) {
return new JdbcUserCredentialRepository(jdbc);
}- Run
./gradlew compileJava
Expected Behavior
Build succeeds with documented dependencies.
Actual Behavior
error: package org.springframework.security.web.webauthn.management does not exist
Environment
- Spring Boot: 4.0.1
- Spring Security: 7.0.2
- Java: 25
- Gradle: 9.2.1
Solution
Adding spring-security-webauthn resolves the issue:
implementation 'org.springframework.security:spring-security-webauthn'This dependency is available in start.spring.io but not mentioned in the documentation.
Suggestion
Update the Required Dependencies section to include spring-security-webauthn for JDBC persistence.
Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triagedtype: bugA general bugA general bug