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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flask_cloudflare_login-0.7.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9170e9cc87926af592b05cf5f17c8fed8756efa0e8c6dd32bdf1db9d62401ad8 |
|
MD5 | f24ab770aed4156f8b5e002bfebc1add |
|
BLAKE2b-256 | d6b7f77bf93855de25c47fa5d60760f0b574e93630aa96e428c4a4632d8b40f8 |
Close
Hashes for flask_cloudflare_login-0.7.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af448a7df13c8cb61b08bcff55725b8888c09da64586c19386aeae8e0ccc567 |
|
MD5 | 8b79b9c3cbe81271a0f55b7dfa3d06eb |
|
BLAKE2b-256 | f949e6cd623860c21431737684b2c6f2b09d8326d81d4fd8f5448ada3b104cdc |