OAuth 2.0 server
Project description
This is an OAuth 2.0 server 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 for a
specialised use case to enable a SLCS (Short-lived Credential Service) to issue
delegated X.509-based credentials with 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 ContrailOnlineCAService package and should be
used in conjunction with the equivalent example in the ndg_oauth_client
example.
* Added discrete WSGI resource server middleware
ndg.oauth.server.wsgi.resource_server.Oauth2ResourceServerMiddleware
* Includes 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_client 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 for a
specialised use case to enable a SLCS (Short-lived Credential Service) to issue
delegated X.509-based credentials with 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 ContrailOnlineCAService package and should be
used in conjunction with the equivalent example in the ndg_oauth_client
example.
* Added discrete WSGI resource server middleware
ndg.oauth.server.wsgi.resource_server.Oauth2ResourceServerMiddleware
* Includes 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_client 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_server-0.4.0.tar.gz
(106.0 kB
view details)
Built Distributions
ndg_oauth_server-0.4.0-py2.7.egg
(214.6 kB
view details)
ndg_oauth_server-0.4.0-py2.6.egg
(214.9 kB
view details)
File details
Details for the file ndg_oauth_server-0.4.0.tar.gz
.
File metadata
- Download URL: ndg_oauth_server-0.4.0.tar.gz
- Upload date:
- Size: 106.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b510b15dd278c67689953b108ce96d28b8844c8ef6b14849ce788150cc9be89 |
|
MD5 | cab56d811e1d91ded154e3177e9b2166 |
|
BLAKE2b-256 | 0c67a232a85aada3889ed2099912e8381bf87ea399329d0466beb055c74186cf |
File details
Details for the file ndg_oauth_server-0.4.0-py2.7.egg
.
File metadata
- Download URL: ndg_oauth_server-0.4.0-py2.7.egg
- Upload date:
- Size: 214.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96547421d9f80466737d385544788746a77f23b7180ebeedfbf3c156b8db0751 |
|
MD5 | 1a8806c2e1fc2c66fd22e88853b41078 |
|
BLAKE2b-256 | 5af3665b8cc28300bd3dfab6b0d0d803a056db796259df235724cd8cb6c5aa19 |
File details
Details for the file ndg_oauth_server-0.4.0-py2.6.egg
.
File metadata
- Download URL: ndg_oauth_server-0.4.0-py2.6.egg
- Upload date:
- Size: 214.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2055fdcc253138ae103ea2db225d85b22736e2adcceaeb64672ff19976d8cb4f |
|
MD5 | 90b664dac5c12fd62df75548bbf900ff |
|
BLAKE2b-256 | 64f8226514b6674a707bbf16badb3dd7c2f7af416dfe09dab5f3386659aca947 |