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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file flask_cloudflare_login-0.7.5.tar.gz.

File metadata

  • Download URL: flask_cloudflare_login-0.7.5.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for flask_cloudflare_login-0.7.5.tar.gz
Algorithm Hash digest
SHA256 9170e9cc87926af592b05cf5f17c8fed8756efa0e8c6dd32bdf1db9d62401ad8
MD5 f24ab770aed4156f8b5e002bfebc1add
BLAKE2b-256 d6b7f77bf93855de25c47fa5d60760f0b574e93630aa96e428c4a4632d8b40f8

See more details on using hashes here.

File details

Details for the file flask_cloudflare_login-0.7.5-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_cloudflare_login-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0af448a7df13c8cb61b08bcff55725b8888c09da64586c19386aeae8e0ccc567
MD5 8b79b9c3cbe81271a0f55b7dfa3d06eb
BLAKE2b-256 f949e6cd623860c21431737684b2c6f2b09d8326d81d4fd8f5448ada3b104cdc

See more details on using hashes here.

Supported by

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