A bunch of helpers for successfully running Pyramid on Heroku.
Project description
Introduction
Installation
Just do
pip install pyramid_cloudflare_access
or
easy_install pyramid_cloudflare_access
Compatibility
pyramid_cloudflare_access runs with pyramid>=1.7 and python>=3.6. Other versions might also work.
Heroku Review Apps deployed on *.herokuapp.com subdomains automatically skip the cloudflare access check as their domains are dynamic and as such can’t be configured in Cloudflare dashboard in advance.
Usage
Add Cloudfalre config to a production.ini:
pyramid_cloudflare_access.policy_audience = "my_audience" pyramid_cloudflare_access.team = "https://team.cloudfare-access.com"
More information can be found at https://developers.cloudflare.com/cloudflare-one/identity/users/validating-json#python-example
Usage example for the tween:
def main(global_config, **settings): config = Configurator(settings=settings) config.include('pyramid_cloudflare_access') return config.make_wsgi_app()
Releasing
Update CHANGES.rst.
Update pyproject.toml version.
Run poetry check.
Run poetry publish --build.
We’re hiring!
At Niteo we regularly contribute back to the Open Source community. If you do too, we’d like to invite you to join our team!
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
Built Distribution
Hashes for pyramid_cloudflare_access-1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b08557e5593902269ea7c0332d24d300ae84b307019169fbf2fd4a880adf76 |
|
MD5 | 20e8aecb44bc79d83624982130e6d2c0 |
|
BLAKE2b-256 | 473fbf752b4583944e4f512cb6a96bde8d7c5fe4ac85a38da56053cd9220e84f |
Hashes for pyramid_cloudflare_access-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af2f47700c81bf0213158d3f27f3b5d978eea8c52fd642d98de702513cb8f12d |
|
MD5 | 50e9f1c60f9504c79d0aade126450756 |
|
BLAKE2b-256 | ab185229b4978ac38a061f768934749a5e4e9fe7c2323a20761335c38689510f |