Authentic2 IdP OAuth2
Project description
Install
You just have to install the package in your virtualenv and relaunch, it will be automatically loaded by the plugin framework.
Settings
AUTOMATIC_GRANT:
A list of URL prefix which are automatically granted scopes without asking the user. Example:
A2_OAUTH2_AUTOMATIC_GRANT = ( ('http://localhost:8000/', ('read',)), )
Web Service proxy
You can configure simple REST web-service in /admin/authentic2_idp_oauth2/webservice/. URL field can contain template variable like that:
http://example.com/info/?user={{ user.username|urlencode }}
or like:
http://example.com/categories/?format=json&NameID={{ federations.service_1.links.0|urlencode }}
Supported authentication mechanisms on the target web-service are HMAC-SHA-256 and HMAC-SHA-1 as specified on http://doc.entrouvert.org/portail-citoyen/dev/.
You can access your newly proxy web-service through those URLs:
http://your-idp.com/idp/oauth2/ws-proxy/<web-service.id>/
or:
http://your-idp.com/idp/oauth2/ws-proxy/<web-service.slug>/
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
Close
Hashes for authentic2-idp-oauth2-1.0.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4791b1944d6b8e3a27b71694ce87cd504fd5178008762a3dde4c9f2f7f8356a |
|
MD5 | 38e6d3fb594203e6625a9e6fd6a99222 |
|
BLAKE2-256 | 943d187a0a9f07af780e4b5c2c75329b98f3021f71553587041ccc9dded11a1b |