Portier authentication support for Kinto
kinto-portier enables authentication in Kinto applications using an email address.
It provides:
An authentication policy class;
Integration with Kinto cache backend for token verifications;
Integration with Kinto for heartbeat view checks;
Some optional endpoints to perform the OAuth dance (optional).
Installation
Install the Python package:
pip install kinto-portier
Include the package in the project configuration:
kinto.includes = kinto_portier
And configure authentication policy using pyramid_multiauth formalism:
multiauth.policies = portier multiauth.policy.portier.use = kinto_portier.authentication.PortierOAuthAuthenticationPolicy
By default, it will rely on the cache configured in Kinto.
Configuration
Fill those settings with the values obtained during the application registration:
kinto.portier.broker_url = https://broker.portier.io kinto.portier.webapp.authorized_domains = *.github.io # kinto.portier.cache_ttl_seconds = 300 # kinto.portier.state.ttl_seconds = 3600
Login flow
OAuth Bearer token
Use the OAuth token with this header:
Authorization: Portier <jwt_token>
- notes:
If the token is not valid, this will result in a 401 error response.
Changelog
This document describes changes between each past release.
0.4.0 (2017-05-17)
Bug fixes
Upgrade to Kinto 7 and set a ttl when using the cache.
0.3.0 (2017-03-08)
Make it works with Python 3.5
0.2.0 (2017-02-10)
Initial implementation
Contributors
Mathieu Leplatre <mathieu@mozilla.com>
Nicolas Perriault <nperriault@mozilla.com>
Rémy Hubscher <rhubscher@mozilla.com>
Metadata
Release files for kinto-portier 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kinto-portier-0.4.0.tar.gz | 11.3 kB | Without provenance | Details for kinto-portier-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kinto_portier-0.4.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for kinto_portier-0.4.0-py2.py3-none-any.whl |
Total release size: 25.3 kB
Release files / kinto-portier-0.4.0.tar.gz
| Download URL | kinto-portier-0.4.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
457fa1f44255ebe94ee048bdab5fc5f3e65f10d7412e5d9f33bcff1023fb382c
|
|
BLAKE2b-256 checksum How to use checksums |
64efdc47d7bb9fbbb7f76ceb2616acf73f1134728b6000261f1586ce83b3d5a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / kinto_portier-0.4.0-py2.py3-none-any.whl
| Download URL | kinto_portier-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9a895f1bcea42b5a4fd310a93fc31bf6ad7119f055b2329cf6a38104cc0d1458
|
|
BLAKE2b-256 checksum How to use checksums |
bfe7c6c59aa0e79461a435325ab42ecc0c8888d8ab57cfab7704ee69399d39f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kinto-portier 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.