Class JdbcClientRegistrationRepository

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.clients.JdbcClientRegistrationRepository
All Implemented Interfaces:
ClientRegistrationRepository

@Repository public class JdbcClientRegistrationRepository extends Object implements ClientRegistrationRepository
ClientRegistrationRepository over Spring Authorization Server's RegisteredClientRepository (the JDBC one), which reads and writes the oauth2_registered_client table. The operations that repository does not offer (listing, deleting, replacing a secret) run directly on that table. The conversion between both models belongs to the RegisteredClientMapper.
  • Field Details

    • CLIENT_ROW_ID

      private static final String CLIENT_ROW_ID
      Sub-query selecting the internal id of a client by its client id.
      See Also:
    • DELETE_AUTHORIZATIONS

      private static final String DELETE_AUTHORIZATIONS
      Statement deleting the authorizations of a client.
      See Also:
    • DELETE_CONSENTS

      private static final String DELETE_CONSENTS
      Statement deleting the consents granted to a client.
      See Also:
    • registeredClientRepository

      private final org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository
      Repository that maps registered clients to rows.
    • jdbcClient

      private final org.springframework.jdbc.core.simple.JdbcClient jdbcClient
      JDBC client used for the operations the registered client repository lacks.
    • registeredClientMapper

      private final RegisteredClientMapper registeredClientMapper
      Maps between registrations and registered clients.
  • Constructor Details

    • JdbcClientRegistrationRepository

      public JdbcClientRegistrationRepository()
  • Method Details