Getting HttpServletRequest in Login Module

2016-06-02 Thread Saurabh.Suman
I want it to get the IP address in the Login module. In JBoss 6 i got so: 1.private String getIP() throws PolicyContextException { 2. HttpServletRequest request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest"); 3. return request.

RE: How to acess HttpServletRequest in Jaas login module in Tomcat

2016-05-25 Thread Saurabh.Suman
Hi Mark, Thanks for your reply. I am already extending JAASCallbackHandler and getting Name and password through that. How can we get HTTLServletRequest through JAASCallbackHandler? SAURABH SUMAN Software Developer Markets & International Banking RBS Block No 1, Tower A, Unitech Infospace Comp

How to acess HttpServletRequest in Jaas login module in Tomcat

2016-05-17 Thread Saurabh.Suman
Hello experts How to acess HttpServletRequest in Jaas login module in Tomcat? In Jboss we can get it through HttpServletRequest request = (HttpServletRequest)PolicyContext.getContext("javax.servlet.http.HttpServletRequest") But it's not working in Tomcat since Jacc is not supported by Tomcat

RE: Policy Context not being set in tomcat 6.0.44

2016-05-17 Thread Saurabh.Suman
Which Tomcat version support JACC? SAURABH SUMAN Software Developer Markets & International Banking RBS Block No 1, Tower A, Unitech Infospace Complex Sector 21, Gurgaon, Haryana, 122002, India Office: +91 124 6195699 | Mobile: +91 375289 -Original Message- From: Mark Thomas [ma

RE: Policy Context not being set in tomcat 6.0.44

2016-05-17 Thread Saurabh.Suman
I tried with Tomcat 7.0.69 (Window 64 bit) , but still getting same output i.e. PolicyContext.getContextID(), it is returning null and PolicyContext.getHandlerKeys() returning Blank array. SAURABH SUMAN Software Developer Markets & International Banking RBS Block No 1, Tower A, Unitech Infospa

Policy Context not being set in tomcat 6.0.44

2016-05-17 Thread Saurabh.Suman
Hi All I am using Apache-Tomcat version: 6.0.44 and my and OS is window 10.My Java version in jdk1.6.0_45. I am using Jaas Realm for Authentication. My authentication is working well but when I tried to get HttpServletRequest object from javax.security.jacc.PolicyContext in login() method of m