Skip to main content

OAuth 2.0 client

Project description

This is an OAuth 2.0 client library and WSGI middleware filter.

It supports simple string-based bearer token and a custom extension to enable
the use of X.509 certificates as tokens. The latter has been added to enable
a SLCS (Short-lived Credential Service) to issue delegated X.509-based
credentials using OAuth.

New pseudo release to keep in sync with ndg_oauth_server package versioning. No
changes from 0.4.0. New ndg_oauth_server 0.5.0 contains enhancements from W
Engen including support for password based authentication for clients. See
ndg_oauth_server package for details.

* Revised examples in ndg.oauth.client.examples. bearer_tok uses bearer token
to secure access to a simple html page on a resource server, slcs is an
example protecting a short-lived credential service aka Online Certificate
Authority. This requires the ContrailOnlineCAClient package and should be
used in conjunction with the equivalent example in the ndg_oauth_server
* Revised ndg.oauth.client.lib.oauth2client.Oauth2Client to include support for
bearer access token passed in Authorization header to resource server.

This has been developed and tested for Python 2.6 and 2.7.

Installation can be performed using easy_install or pip.

Examples are contained in the examples/ sub-folder:

This configures a simple test application that uses string based tokens.
Bearer token example protecting a Short-Lived Credential Service or OnlineCA.
ContrailOnlineCAService package is needed for this example.

The examples should be used in conjunction with the ndg_oauth_server package.

Download files

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

Files for ndg-oauth-client, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size ndg_oauth_client-0.5.0-py2.7.egg (88.5 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ndg_oauth_client-0.5.0.tar.gz (18.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page