Portier authentication support in Kinto
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kinto-portier-0.4.0.tar.gz
.
File metadata
- Download URL: kinto-portier-0.4.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 457fa1f44255ebe94ee048bdab5fc5f3e65f10d7412e5d9f33bcff1023fb382c |
|
MD5 | b9ce6b4ea82fda91fbe448f9f3a41c1f |
|
BLAKE2b-256 | 64efdc47d7bb9fbbb7f76ceb2616acf73f1134728b6000261f1586ce83b3d5a7 |
File details
Details for the file kinto_portier-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: kinto_portier-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a895f1bcea42b5a4fd310a93fc31bf6ad7119f055b2329cf6a38104cc0d1458 |
|
MD5 | bbefd5cda86bf710251051731847d1c9 |
|
BLAKE2b-256 | bfe7c6c59aa0e79461a435325ab42ecc0c8888d8ab57cfab7704ee69399d39f6 |