aspose file tools*
The moose likes Security and the fly likes Jaas custom Realm and Login Module Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Jaas custom Realm and Login Module" Watch "Jaas custom Realm and Login Module" New topic
Author

Jaas custom Realm and Login Module

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Hi,
I am new to JAAS and using this link to create custom Realm and Login module.
I have followed all the steps given in that tutorial.

I have created a web application with only one JSP page (index.jsp) as mentioned there and paste the following code in it:
Welcome ${pageContext.request.userPrincipal.name}

I have also add information to web.xml.
When I run the application it only displays the page with Welcome in it.

I would very much appreciate, if some one could guide me with this.
Should I have to create a LogIn page and then go to index.jsp page or some other steps are required to run the application.

Thanks
malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Finally found a solution.
In web.xml of the web application I placed the code:

 
Don't get me started about those stupid light bulbs.
 
subject: Jaas custom Realm and Login Module