Skip to main content

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

Installation

As stated in the official documentation, Firefox Accounts OAuth integration is currently limited to Mozilla relying services.

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.3.0 (2017-03-08)

  • Make it works with Python 3.5 (#)

0.2.0 (2017-02-10)

  • Initial implementation

Contributors

Metadata

Release files for kinto-portier 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kinto-portier 0.3.0
File Size Uploaded
kinto-portier-0.3.0.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kinto-portier 0.3.0
File Interpreter ABI Platform
kinto_portier-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 24.6 kB

Release files / kinto-portier-0.3.0.tar.gz

Download URL kinto-portier-0.3.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2e191937a8d9e1a96d03250f7e479ee5446ee40e5902b9335d697113657b52e9
BLAKE2b-256 checksum
How to use checksums
1bb8e67ebef26411568805f48a9b186a8389b03518e098117d757dcb9d8dd70a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / kinto_portier-0.3.0-py2.py3-none-any.whl

Download URL kinto_portier-0.3.0-py2.py3-none-any.whl
Size 13.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
018c9b592e83d280e932201cdab3a89b6cd48a72c9820ff53f234bf2e20b0d13
BLAKE2b-256 checksum
How to use checksums
2755f9aa6311301996b3424b38cc64bc5e9f3073ec6a13083806bad8916a1456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page