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.

Source Distribution

wsgioauth.zodb-0.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file wsgioauth.zodb-0.2.tar.gz.

File metadata

File hashes

Hashes for wsgioauth.zodb-0.2.tar.gz
Algorithm Hash digest
SHA256 2aa2d4204bd8bb7458b9bae0c04ecd9bd9c5e9554fbb6116215f78ce940259bb
MD5 62a2a2ccf9d74b4f8e008b496df2b4da
BLAKE2b-256 efe6d3b39941cf56fea79388ed288b2ce4577d38f9076cf5bc9b20781637908c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page