Using JAAS for JBoss portlet authentication

P

priyom

Hi,
I want to use JAAS for authenticating users to my portlet. The problem
is, the jass.config (which consists of the configuration entries for
the custom modules) file is not read by the JBoss Application server
hence my LoginModule (say my.portal.CustomLoginModule) is not called by
JBoss. I tried putting it in /WEB-INF folder but to no avail. My
application is basically a portlet which initially would ask the users
to login and then validate the user against a database (through a web
service in the future). If the user is valid, a new page would be
displayed, else an error page would be shown.
Contents of jaas.config:
Example {
my.portal.CustomLoginModule required debug="true"
url="jdbc:mysql://localhost/principal" driver="com.mysql.jdbc.Driver";
};
I am instantiating CustomLoginContext like this:
CustomLoginContext lc = new CustomLoginContext("Example");
Let me clarify that I am talking about a separate login for my own
portlet and not for the entire portal.
Any pointers would be greatly appreciated. Thanks in advance.

Regards,
Priyom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top