use of org.platformlayer.auth.keystone.KeystoneOpsUserModule in project platformlayer by platformlayer.
the class KeystoneUserServer method main.
public static void main(String[] args) throws Exception {
List<Module> modules = Lists.newArrayList();
ConfigurationModule configurationModule = new ConfigurationModule();
modules.add(configurationModule);
Discovery discovery = Discovery.build();
ConfigurationImpl configuration = configurationModule.getConfiguration();
Extensions extensions = new Extensions(configuration, discovery);
modules.add(new CacheModule());
modules.add(new GuiceAuthenticationConfig());
modules.add(new KeystoneJdbcModule());
modules.add(new KeystoneOpsUserModule());
modules.add(new CodahaleMetricsModule());
modules.add(new UserAuthServletModule(extensions));
Injector injector = Guice.createInjector(modules);
KeystoneUserServer server = injector.getInstance(KeystoneUserServer.class);
server.start(WellKnownPorts.PORT_PLATFORMLAYER_AUTH_USER);
}
Aggregations