views:

353

answers:

2

I need to create a cherrypy main page that has a login area. I want the login area to be secure, but the rest of the page should not be so. How can I do this in CherryPy?

Ideally, any suggestions will be compatible with http://tools.cherrypy.org/wiki/AuthenticationAndAccessRestrictions

Thanks.

A: 

This is commonly considered a bad idea. The primary reason is that it confuses most people due to the website identity markers appearing in just about every current browsers url area.

Chris Lively
+1  A: 

Assuming you only want parts of the actual page to be secure, you should create an iframe pointing to a HTTPS source. However, this shows a "secure and non-secure items on page" warning to the user.

Alex B