https://issues.apache.org/bugzilla/show_bug.cgi?id=53777
Priority: P2
Bug ID: 53777
Assignee: [email protected]
Summary: Ability to bundle JAAS Configuration in Webappp
Severity: enhancement
Classification: Unclassified
OS: All
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]