Skip to main content

The Flask Cloudflare Login module provides a Flask-Login user class from Cloudfare Access JWT token and Cloudflare identity API

Project description

Flask Cloudflare Login

The Flask Cloudflare Login module provides a Flask-Login user class from Cloudfare Access JWT token and Cloudflare identity API.

Installation

Flask Cloudflare Login is available from PyPI and can be installed by running:

pip install flask-cloudflare-login

Usage example - Dash App

Cloudflare Settings

Configure your Cloudflare settings in in examples/dash/.env

CF_TEAM_DOMAIN=<company>.cloudflareaccess.com
CF_POLICY_AUD=

In order to make the application work locally you need to set CF_TEST_TOKEN with the CF_Authorization cookie value.

CF_TEST_TOKEN=

Start the Dash App

make run

How to contribute?

  • clone this repo or pull the latest changes
  • create a new branch feature/<feature>
  • run make test to auto format code, make sure all tests are passed
  • push the code and create a merge request to main branch
  • get the pull request reviewed and approved, the branch should be removed once merged.
  • create a new git tag version, following semantic versioning praxis MAJOR.MINOR.PATCH

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

flask_cloudflare_login-0.7.5.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

flask_cloudflare_login-0.7.5-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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