Skip to content

Commit

Permalink
fixes #648 so we don't default to a karaf specific role principle cla…
Browse files Browse the repository at this point in the history
…ss by default; which seems pretty fragile & only works on some karaf versions (and not on equinox/jetty etc)
  • Loading branch information
jstrachan committed Oct 16, 2013
1 parent 873abb5 commit 909ad98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hawtio-web/src/main/java/io/hawt/HawtioContextListener.java
Expand Up @@ -20,7 +20,8 @@ public void contextInitialized(ServletContextEvent servletContextEvent) {

String realm = System.getProperty("hawtio.realm", "karaf");
String role = System.getProperty("hawtio.role", "admin");
String rolePrincipalClasses = System.getProperty("hawtio.rolePrincipalClasses", "org.apache.karaf.jaas.boot.principal.RolePrincipal");
//String rolePrincipalClasses = System.getProperty("hawtio.rolePrincipalClasses", "org.apache.karaf.jaas.boot.principal.RolePrincipal,org.apache.karaf.jaas.modules.RolePrincipal");
String rolePrincipalClasses = System.getProperty("hawtio.rolePrincipalClasses", "");
Boolean authEnabled = Boolean.valueOf(System.getProperty("hawtio.authenticationEnabled", "true"));

servletContextEvent.getServletContext().setAttribute("realm", realm);
Expand Down

0 comments on commit 909ad98

Please sign in to comment.