Thank you. this link worked fine for basic authentication. Now I wanted to do the authentication using Database. For this i am using org.jboss.security.auth.spi.DatabaseServerLoginModule. It was working fine and abled to authenticate using database. Now the problem is i want to use my own LoginModule instead of org.jboss.security.auth.spi.DatabaseServerLoginModule. For this i have created one config file to locate my own LoginModule but it is not abled to find the config file even. But it was working fine under console application. How to configure it in jboss. And can you please tell me where to find this
org.jboss.security.auth.spi.DatabaseServerLoginModule class, if i can find the location i will place my LoginMoudle class file there.
Please help me
If you want to write a custom login module, you just have to mention the classname(along with its packagename) of the loginmodule in the login-config.xml present in %JBOSS_HOME%/server/deault/conf folder. You will additionally have to place the login module class (and all other related classes) in the classpath. You dont require a separate file to mention your login module and also you dont have to write code to locate the file containing the login module.