This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Problems with Form Based Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problems with Form Based Authentication" Watch "Problems with Form Based Authentication" New topic
Author

Problems with Form Based Authentication

Sudarshan Muramreddy
Greenhorn

Joined: Jun 08, 2004
Posts: 16
Hi All,
I am trying to do form based authentication in JBoss.The following steps i have done to do so

1.Came up with one Login.jsp and LoginServlet.java

In LoginServlet i am doing the authentiation AS BELOW



3.i am giving the the authentication as "DBLogin" and giving this info in the Login-config.xml file

as below




4.DBLoginModule just extends from jboss DatabaseServerLoginModule


Though i am getting ctx.login(); with out any error and even i can print the principles after this,
but this is not really setting the principles into the servlet session ,which is required by my application,
so when i go into application and try to access the getremoteuser() or isUserInRole() it's giving me null values


Did i miss any thing here ,may be set the subject into the session so that Jboss takes that info from there?.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with Form Based Authentication
 
Similar Threads
Issue in using the DatabaseServerLoginModule for encrypting the password using MD5
Security features in Jboss
JAAS With JBOSS: My How-To Tutorial
Some JAAS questions
Very frustrated with no idea how to check logins