2008-05-24 | paulb | raw annotate files changeset graph | [project @ 2008-05-24 15:21:53 by paulb] Added a note about accidental authentication token collisions. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.BaseHTTPRequestHandler import deploy 4 from SimpleWithOpenID import get_site_map 5 6 app_url = "http://localhost:8080" # No trailing "/"! 7 initiation_url = "http://localhost:8080/login" 8 secret_key = "horses" # Must match the login authenticator's key. 9 10 resource = get_site_map(app_url, initiation_url, secret_key) 11 12 print "Serving..." 13 deploy(resource, handle_errors=0) 14 15 # vim: tabstop=4 expandtab shiftwidth=4