tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53777] New: Ability to bundle JAAS Configuration in Webappp
Date Fri, 24 Aug 2012 13:50:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53777

          Priority: P2
            Bug ID: 53777
          Assignee: dev@tomcat.apache.org
           Summary: Ability to bundle JAAS Configuration in Webappp
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: eolivelli@gmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: Catalina
           Product: Tomcat 7

I would like to let JAASRealm to load JAAS Configuration from a .properties
file bundled in a web application (either in WEB-INF/classes or in any JAR on
the classpath of the context)

Actually (7.0.29) JAASRealm creates a LoginContext using the 2-args constructor
loginContext = new LoginContext(appName, callbackHandler); 

I propose to add a new configuration parameter on JAASRealm to let it load a
javax.security.auth.login.Configuration from the ContextClassLoader

this new Configuration has to be passed to the 4-args constructor
loginContext = new LoginContext(appName, subject, callbackHandler,
configuration); 

http://docs.oracle.com/javase/6/docs/api/javax/security/auth/login/LoginContext.html#LoginContext%28java.lang.String,%20javax.security.auth.Subject,%20javax.security.auth.callback.CallbackHandler,%20javax.security.auth.login.Configuration%29

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message