RemoteUserFederationProviderFactory implements UserFederationProviderFactory { @Override public Set<String> getConfigurationOptions() { LOG.warn("Returning configuration options"); return Collections.singleton(PROP_USER_VALIDATION_URL); }  @Override UserFederationProvider getInstance(KeycloakSession session, UserFederationProviderModel model); @Override Set<String> getConfigurationOptions(); @Override String getId(); @Override UserFederationProvider create(KeycloakSession session); @Override void init(Scope config); @Override void postInit(KeycloakSessionFactory factory); @Override void close(); @Override UserFederationSyncResult syncAllUsers(KeycloakSessionFactory sessionFactory, String realmId, UserFederationProviderModel model); @Override UserFederationSyncResult syncChangedUsers(KeycloakSessionFactory sessionFactory, String realmId, UserFederationProviderModel model, Date lastSync); static final String PROVIDER_NAME; static final String PROP_USER_VALIDATION_URL; }
@Test public void testGetConfigurationOptions() throws Exception { Set<String> options = factory.getConfigurationOptions(); assertNotNull(options); assertEquals(1, options.size()); assertEquals(RemoteUserFederationProviderFactory.PROP_USER_VALIDATION_URL, Lists.newArrayList(options).get(0)); }