1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/CGI/SimpleWithOpenIDHandler.py Thu May 01 21:46:24 2008 +0000
1.3 @@ -0,0 +1,31 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# Uncomment and adjust the paths below if WebStack is not installed somewhere
1.7 +# on the PYTHONPATH.
1.8 +
1.9 +#import sys
1.10 +#sys.path.append("/home/paulb/Software/Python/WebStack")
1.11 +#sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.12 +
1.13 +from WebStack.Adapters.CGI import deploy
1.14 +from SimpleWithOpenID import get_site_map
1.15 +
1.16 +# Change this to be the exact URL.
1.17 +# eg. http://localhost:8000/cgi/myapp/requestid
1.18 +
1.19 +initiation_url = "http://localhost/cgi/simplewithopenid/login"
1.20 +
1.21 +# Change this to be the URL base for your server.
1.22 +# eg. http://localhost:8000
1.23 +
1.24 +app_url = "http://localhost"
1.25 +
1.26 +# Must match the key used elsewhere.
1.27 +
1.28 +secret_key = "horses"
1.29 +
1.30 +resource = get_site_map(app_url, initiation_url, secret_key)
1.31 +
1.32 +deploy(resource, handle_errors=0)
1.33 +
1.34 +# vim: tabstop=4 expandtab shiftwidth=4