This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JBoss Authentication with JAAS(j_security_check)-Where does 'j_security_check' redirect after Authe?  RSS feed

 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My Login.jsp




jboss-web.xml in WAR's WEB-INF contains:

Also,
In this example "adb" is a domain that has been declared in $JBoss/server/default/conf/login-config.xml

Where does the 'j_security_check' servlet redirect to after it has finished? Where has it been defined?


 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It redirects to the page that cause the login.jsp page to be displayed. I think it redirects to the home page if there is no previous page. This mechanism lets you click on a URL to a secured page, at which point you are asked to log in, after which you are sent to the page you originally requested.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!