java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.passkeys.WebAuthnJdbcConfiguration

@Configuration(proxyBeanMethods=false) public class WebAuthnJdbcConfiguration extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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).
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.