Skip to main content

Authenticate to Django with JSON Web Tokens (JWTs) signed by Cloudflare Access

Project description

Authenticate to Django with JSON Web Tokens (JWTs) signed by Cloudflare Access. A Django reimplementation of https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/#python-example

To run the demo, export these environment variables

Then run

docker-compose up

Configure Cloudflare Tunnel public hostname demodj.your-domain.tld to http://localhost:8001 or equivalent.

TODO

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

allowedflare-2024.10.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

allowedflare-2024.10.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file allowedflare-2024.10.0.tar.gz.

File metadata

  • Download URL: allowedflare-2024.10.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for allowedflare-2024.10.0.tar.gz
Algorithm Hash digest
SHA256 bc2ccdcf363eb14eebadd798ab71e9152b130e58831d7ef864e5493bf34b57d3
MD5 eb19686c2e4ba23fe2596187a5fea29f
BLAKE2b-256 0eb60c76ac55c46ea56bac2b54a894ede9b544cc9dadd6d66415a3a18edc4959

See more details on using hashes here.

File details

Details for the file allowedflare-2024.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for allowedflare-2024.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4213b5a65fc44ec37f362b379aebf5b3f1cbd7aeacbe9531d293eaf8e1848d2
MD5 6cc5677e6954c8bb793cb830676e8b80
BLAKE2b-256 d82018b3da53795db20d65894c73f32f7e5e0d898cfc5c754efdfed46264ae49

See more details on using hashes here.

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