> From: Rafael Liu [mailto:rafael...@gmail.com] 
> Subject: Setting SSL for login pages

> I think it would be natural something like this:

> <security-constraint>
>   <web-resource-collection>
>     <web-resource-name>SSL login</web-resource-name>
>     <url-pattern>/login/*</url-pattern>
>   </web-resource-collection>
>   <user-data-constraint>
>     <transport-guarantee>CONFIDENTIAL</transport-guarantee>
>   </user-data-constraint>
> </security-constraint>

The login pages are usually not specified in the <url-pattern>; only the pages 
to be protected.  Login pages are not normally directly accessed by a user, but 
are only presented when the user attempts to access a protected page.

> As I see, the way it is, all authenticated pages must be set 
> to CONFIDENTIAL also

Not also, instead.

> But if the user IS authenticated he is forced to use HTTPS 
> too, and that I was trying to avoid.

Think about it: if the secure traffic is only for the login page, anyone could 
access the not-really-protected pages by sniffing the sessionid used on the 
unsecure connection - you would have no security.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to