A package that implements OAuth with ZODB storage.
The wsgioauth.zodb package is a library that extends the wsgioauth parent package by adding support for the Zope Object Database (ZODB).
The example requires you to setup a ZEO instance. You can setup a ZEO instance using the following two commands (setup may very depending on your system setup):
$ $PATH_TO/mkzeoinst myzeo $ myzeo/bin/zeoctl start
At this point the ZEO instance should be running on the default port 8100. Next, you run the example using PasteDeploy and the wsgioauth package’s consumer example with the following commands:
$ cd $PATH_TO/wsgioauth.zodb $ paster serve run.ini & $ cd $PATH_TO/wsgioauth $ python example/consumer.py &
Open your web browser and go to the address http://localhost:8081/ (location where the consumer is running). There you will be given a link to print your vacation picture (see the OAuth specification for details about this example use-case). After clicking this link the consumer obtains the access token to make a call to the protected resource for the image. In this case we are simply using an echo application to echo the parameters. The results will show on the http://localhost:8081/print_vacation page, along with a link back to the index page. The access token information will be displayed on the index page after it has been acquired.
- Initial public release.
- Wrote an example that can be run using the paster configuration file and the parent package’s consumer example.
- Created the classes that one would use to store OAuth info in the ZODB.
Copyright (c) 2008-2009 The Pennsylvania State University. WebLion packages are developed and maintained by the WebLion Group and its partners.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
This document is written using the Structured Text format for conversion into alternative formats.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size wsgioauth.zodb-0.2.tar.gz (4.2 kB)||File type Source||Python version None||Upload date||Hashes View|