Search in sources :

Example 1 with UserAuthServletModule

use of org.openstack.keystone.resources.user.UserAuthServletModule 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);
}
Also used : UserAuthServletModule(org.openstack.keystone.resources.user.UserAuthServletModule) Discovery(com.fathomdb.discovery.Discovery) KeystoneJdbcModule(org.platformlayer.auth.KeystoneJdbcModule) CacheModule(org.platformlayer.cache.CacheModule) Extensions(org.platformlayer.extensions.Extensions) CodahaleMetricsModule(org.platformlayer.metrics.client.codahale.CodahaleMetricsModule) ConfigurationModule(org.platformlayer.config.ConfigurationModule) KeystoneOpsUserModule(org.platformlayer.auth.keystone.KeystoneOpsUserModule) Injector(com.google.inject.Injector) GuiceAuthenticationConfig(org.platformlayer.auth.server.GuiceAuthenticationConfig) Module(com.google.inject.Module) UserAuthServletModule(org.openstack.keystone.resources.user.UserAuthServletModule) KeystoneOpsUserModule(org.platformlayer.auth.keystone.KeystoneOpsUserModule) CodahaleMetricsModule(org.platformlayer.metrics.client.codahale.CodahaleMetricsModule) ConfigurationModule(org.platformlayer.config.ConfigurationModule) CacheModule(org.platformlayer.cache.CacheModule) KeystoneJdbcModule(org.platformlayer.auth.KeystoneJdbcModule) ConfigurationImpl(com.fathomdb.config.ConfigurationImpl)

Aggregations

ConfigurationImpl (com.fathomdb.config.ConfigurationImpl)1 Discovery (com.fathomdb.discovery.Discovery)1 Injector (com.google.inject.Injector)1 Module (com.google.inject.Module)1 UserAuthServletModule (org.openstack.keystone.resources.user.UserAuthServletModule)1 KeystoneJdbcModule (org.platformlayer.auth.KeystoneJdbcModule)1 KeystoneOpsUserModule (org.platformlayer.auth.keystone.KeystoneOpsUserModule)1 GuiceAuthenticationConfig (org.platformlayer.auth.server.GuiceAuthenticationConfig)1 CacheModule (org.platformlayer.cache.CacheModule)1 ConfigurationModule (org.platformlayer.config.ConfigurationModule)1 Extensions (org.platformlayer.extensions.Extensions)1 CodahaleMetricsModule (org.platformlayer.metrics.client.codahale.CodahaleMetricsModule)1