Skip to main content

A package that implements OAuth with ZODB storage.

Project description

Overview

The wsgioauth.zodb package is a library that extends the wsgioauth parent package by adding support for the Zope Object Database (ZODB).

Example

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.

Changelog

0.2 (2010-01-25)

  • Initial public release.
  • Wrote an example that can be run using the paster configuration file and the parent package’s consumer example.

0.1 (2010-01-00)

  • Created the classes that one would use to store OAuth info in the ZODB.

License

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.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wsgioauth.zodb, version 0.2
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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page