Class WebAuthnJdbcConfiguration
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.passkeys.WebAuthnJdbcConfiguration
Registers the JDBC implementations of the Spring Security WebAuthn stores. The WebAuthn configurer of the web
adapter finds them as beans, so registrations and sign-ins persist in the
user_entities and
user_credentials tables instead of the in-memory defaults.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.webauthn.management.PublicKeyCredentialUserEntityRepositorypublicKeyCredentialUserEntityRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Creates the store of WebAuthn user entities (the user handle, the account name and its display name).org.springframework.security.web.webauthn.management.UserCredentialRepositoryuserCredentialRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Creates the store of WebAuthn credentials (public key, signature counter, flags and label).
-
Constructor Details
-
WebAuthnJdbcConfiguration
public WebAuthnJdbcConfiguration()
-
-
Method Details
-
publicKeyCredentialUserEntityRepository
@Bean public org.springframework.security.web.webauthn.management.PublicKeyCredentialUserEntityRepository publicKeyCredentialUserEntityRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Creates the store of WebAuthn user entities (the user handle, the account name and its display name).- Parameters:
jdbcTemplate- JDBC template of the application datasource.- Returns:
- the user entity repository.
-
userCredentialRepository
@Bean public org.springframework.security.web.webauthn.management.UserCredentialRepository userCredentialRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Creates the store of WebAuthn credentials (public key, signature counter, flags and label).- Parameters:
jdbcTemplate- JDBC template of the application datasource.- Returns:
- the credential repository.
-