Skip to content

Commit

Permalink
fixes #553 - many thanks for the heads up @stustison
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 17, 2013
1 parent ef585d8 commit aaeadf9
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -39,7 +39,10 @@ public void init(FilterConfig filterConfig) throws ServletException {
realm = (String) filterConfig.getServletContext().getAttribute("realm");
role = (String) filterConfig.getServletContext().getAttribute("role");
rolePrincipalClasses = (String) filterConfig.getServletContext().getAttribute("rolePrincipalClasses");
enabled = (Boolean) filterConfig.getServletContext().getAttribute("authEnabled");
Object authEnabledValue = filterConfig.getServletContext().getAttribute("authEnabled");
if (authEnabledValue instanceof Boolean) {
enabled = (Boolean) authEnabledValue;
}

if (enabled) {
LOG.info("Starting hawtio authentication filter, JAAS realm: \"" + realm + "\" authorized role: \"" + role + "\"" + " role principal classes: \"" + rolePrincipalClasses + "\"");
Expand Down

0 comments on commit aaeadf9

Please sign in to comment.