O'Reilly logo

Spring Python 1.1 by Greg Lee Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building web applications ignoring security

We need a simple application. For this example, we will use CherryPy (http://cherrypy.org), a pythonic web framework that conveniently maps URLs into Python methods.

Note

If you want to know more about the CherryPy framework, I highly recommend reading CherryPy Essentials by Sylvain Hellegouarch.

After building our web application, we will review some of the options people take in securing things. Then, we will plug in Spring Python Security, showing how easy it is to lock down an application.

First, let's build a simple web application that serves wiki pages, and allows us to edit them.

import cherrypy def forward(url): return '<META HTTP-EQUIV="Refresh" CONTENT="0; URL=' + url + '">' class Springwiki(object): ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required