Here's the situation: I'm trying to implement JAAS LoginModule on weblogic server.My JASS.config file is as follows:
FooLogin{
com.example.authnticator.library.ExLoginModule required;
};
My JAAS.config file is availble in the path `BASE_DOMAIN/config/jass`.The problem i'm facing here is, how to map the JAAS.config file path to javax.security.auth.login.LoginContext ?..As per [oracle documentation][1] there are two ways to do the same.
one is to use the command Line :
-Djava.security.auth.login.config=${BASE_DOMAIN}/config/jass/JAAS.config
in the WebLogic domain environment setup script setDomainEnv.sh
Next one is to update the
Java security properties file :
login.config.url.1=file:BASE_DOMAIN/config/jass/JAAS.config
But, is there an alternate way for doing the same?, Since i prefer not to edit the shell file and not to mess with the JDK in the weblogic server, which may also affect other applications running in the server.
It would be really useful if there is a way to map the configuration file without using the methods mentioned above.
[1]:
https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html