On 29/08/2011 19:20, Sudeep Pradhan wrote:
> Hi,
>
> I am using Tomcat 6.0.33. I have a CometProcessor Servlet and CometFilter. I
> use curl as http client and send username/password with basic authentication.
> The curl trace shows that the authentication type is basic. I have HTTPS in
> place. I try to get the AuthType and Principal in CometFilter but both are
> null. I have the following code in place:
>
> HttpServletRequest request =
> event.getHttpServletRequest();
> HttpServletResponse response =
> event.getHttpServletResponse();
>
> System.out.println("Auth Type : " +
> request.getAuthType());
> System.out.println("User Principal: " +
> request.getUserPrincipal());
>
> Can you tell me what needs to be done in order to get this working?
Tomcat doesn't process authentication headers unless the resource has a
security constraint defined. What constraints are defined for this resource?
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]