コード例 #1
0
 @Override
 public StoreFactory create(KeycloakSession session) {
   MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
   return new MongoStoreFactory(connection.getInvocationContext(), session);
 }
コード例 #2
0
 @Override
 public RealmProvider create(KeycloakSession session) {
   MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
   return new MongoRealmProvider(session, connection.getInvocationContext());
 }