Skip to main content

Portier authentication support in Kinto

Project description

Portier authentication support for Kinto

travis Coverage

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).
  • Kinto documentation
  • Issue tracker


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.


Fill those settings with the values obtained during the application registration:

kinto.portier.broker_url =
kinto.portier.webapp.authorized_domains = *
# 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.


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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kinto-portier, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size kinto_portier-0.4.0-py2.py3-none-any.whl (14.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size kinto-portier-0.4.0.tar.gz (11.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page