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.
Releases
========
0.4.0
-----
* 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
example.
* Revised ndg.oauth.client.lib.oauth2client.Oauth2Client to include support for
bearer access token passed in Authorization header to resource server.
Prerequisites
=============
This has been developed and tested for Python 2.6 and 2.7.
Installation
============
Installation can be performed using easy_install or pip.
Configuration
=============
Examples are contained in the examples/ sub-folder:
bearer_tok/:
This configures a simple test application that uses string based tokens.
slcs/:
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.
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.
Releases
========
0.4.0
-----
* 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
example.
* Revised ndg.oauth.client.lib.oauth2client.Oauth2Client to include support for
bearer access token passed in Authorization header to resource server.
Prerequisites
=============
This has been developed and tested for Python 2.6 and 2.7.
Installation
============
Installation can be performed using easy_install or pip.
Configuration
=============
Examples are contained in the examples/ sub-folder:
bearer_tok/:
This configures a simple test application that uses string based tokens.
slcs/:
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ndg_oauth_client-0.4.0.tar.gz
(44.6 kB
view hashes)
Built Distributions
ndg_oauth_client-0.4.0-py2.7.egg
(88.6 kB
view hashes)
ndg_oauth_client-0.4.0-py2.6.egg
(88.7 kB
view hashes)
Close
Hashes for ndg_oauth_client-0.4.0-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6490fdb1829fd8c25913e73301f6e0fa7f94f60ebd22dce29b81efdc7e577f13 |
|
MD5 | 76ef0723aca8b430c0c19611aa0b17ea |
|
BLAKE2b-256 | a7f6ca235806f4e13cd93530fb542031ad228c99291eef6016adb49acc2b1f10 |
Close
Hashes for ndg_oauth_client-0.4.0-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ebcfb859a5d8c268076079fa2177e8d3279c8ee740d59990864a4befd2c377 |
|
MD5 | be123f686bea14e41ba0f18621da8a27 |
|
BLAKE2b-256 | 7af1aab47a22e96d98bbf91102f6f3dee6de35f3f9906fc695ba0719e40bb80d |