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 details)
Built Distributions
ndg_oauth_client-0.4.0-py2.7.egg
(88.6 kB
view details)
ndg_oauth_client-0.4.0-py2.6.egg
(88.7 kB
view details)
File details
Details for the file ndg_oauth_client-0.4.0.tar.gz
.
File metadata
- Download URL: ndg_oauth_client-0.4.0.tar.gz
- Upload date:
- Size: 44.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbea0209ba0e597753425f5fb1d194d0902c6a299f7867488967f6163ae36122 |
|
MD5 | 64c0e6a8a4cfa9ca03246f2e889fb7db |
|
BLAKE2b-256 | ecaaa6838d10ff95a673adb63993a4033f65b6ad04173ed5cb3f1544b9f48984 |
File details
Details for the file ndg_oauth_client-0.4.0-py2.7.egg
.
File metadata
- Download URL: ndg_oauth_client-0.4.0-py2.7.egg
- Upload date:
- Size: 88.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6490fdb1829fd8c25913e73301f6e0fa7f94f60ebd22dce29b81efdc7e577f13 |
|
MD5 | 76ef0723aca8b430c0c19611aa0b17ea |
|
BLAKE2b-256 | a7f6ca235806f4e13cd93530fb542031ad228c99291eef6016adb49acc2b1f10 |
File details
Details for the file ndg_oauth_client-0.4.0-py2.6.egg
.
File metadata
- Download URL: ndg_oauth_client-0.4.0-py2.6.egg
- Upload date:
- Size: 88.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ebcfb859a5d8c268076079fa2177e8d3279c8ee740d59990864a4befd2c377 |
|
MD5 | be123f686bea14e41ba0f18621da8a27 |
|
BLAKE2b-256 | 7af1aab47a22e96d98bbf91102f6f3dee6de35f3f9906fc695ba0719e40bb80d |