Class JdbcFederatedIdentityRepository

java.lang.Object
com.codename1.backend.security.oauth2.client.JdbcFederatedIdentityRepository
All Implemented Interfaces:
FederatedIdentityRepository

public final class JdbcFederatedIdentityRepository extends Object implements FederatedIdentityRepository

Identities kept in the server's database, in the cn1_federated_identity table of SecuritySchema.

@Bean
FederatedIdentityRepository identities(DataSource dataSource) {
    return new JdbcFederatedIdentityRepository(dataSource);
}

The pair of provider and subject is the table's key, so of two processes that tie the same identity at the same moment one inserts the row and the other reads it: both answer the same user.