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

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.2.0 (2017-02-10)

  • Initial implementation

Contributors

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

kinto-portier-0.2.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

kinto_portier-0.2.0-py2.py3-none-any.whl (13.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kinto-portier-0.2.0.tar.gz.

File metadata

File hashes

Hashes for kinto-portier-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0dc8abfbc08f078410126f60527ef51a313c65be3292f03b3b10ac9d350dfe80
MD5 114ffbd0bb2fe23b5b6c8bec7a1119d0
BLAKE2b-256 503d789c1f8ea83b985baf96519012a3bb11a4271c9feff940107eb15714ec18

See more details on using hashes here.

Provenance

File details

Details for the file kinto_portier-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kinto_portier-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cd7da5864e9eff59c804df1ea04d2bc8aee8b2da460067069c429b4b3f0640fc
MD5 3f93994965337a0c69b49c20ba9f49c0
BLAKE2b-256 c949cf8d86a09131f050c583cc5d9b1e95a78dc2c20143a6a4397619e9a5f76c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page