java - JAAS Realm load internal config file -
I have implemented a simple JAAS module with realm configuration on the tomcat. It works very well when specifying the jaas.conf file Catalina.sh is very much like
javo_opts = $ javo_opts "-djava.security.auth.login.config == $ catalina_base / Conf / jaas.config "
However, I wanted to simplify my application by adding this config file internally to the web application. The documentation states that you can use configfile param
"Name of a JAAS configuration file to use with this field. It will be searched to use Classloader # getResource (string) so that The configuration can be bundled into a web application. If not specified, the default JVM global JAAS configuration will be used. "
In my reference .xml in my web app:
& lt; Realem Appname = "AppleGuin" classname = "org.apache.catalina.realm.JAASRealm" config = "web-ANF / jaas.config" ..... />
The config file / WEB-INF / jaas.config is located
Why is my Javascript config file not loaded?
/ Blockquote>
Then you must enter the JS configuration file in classpath: WEB-INF / classes
or WEB-INF / lib
but not WEB-INF < / Code> directly.
And just specify the filename written in the document:
configfile
- Use a JAAS configuration file to use with this field Name.
Comments
Post a Comment