This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with Form Based Authentication

 
Sudarshan Muramreddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic