Class JdbcFederatedIdentityRepository

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.social.JdbcFederatedIdentityRepository
All Implemented Interfaces:
FederatedIdentityRepository

@Repository public class JdbcFederatedIdentityRepository extends Object implements FederatedIdentityRepository
FederatedIdentityRepository over the federated_identities table. It joins the transaction of its caller, in which lockSubject(com.irurueta.authserver.authorization.domain.social.IdentityProvider, java.lang.String) takes a PostgreSQL transaction-level advisory lock on the provider's identity, so two first sign-ins of the same person are serialized and the unique constraint on (provider, subject) is never hit (a violation would abort the caller's transaction).