protected KenaiRealmConfiguration getKenaiRealmConfiguration()
throws Exception
{
// configure Kenai Realm
KenaiRealmConfiguration kenaiRealmConfiguration = lookup(KenaiRealmConfiguration.class);
Configuration configuration = kenaiRealmConfiguration.getConfiguration();
configuration.setDefaultRole(DEFAULT_ROLE);
configuration.setEmailDomain("sonatype.org");
configuration.setBaseUrl(server.getServerProvider().getUrl() + AUTH_APP_NAME + "/"); // add the '/' to the end
// kenaiRealmConfiguration.updateConfiguration( configuration );
return kenaiRealmConfiguration;