{ "info": { "author": "Standart AG, LLC", "author_email": "it@standart.lv", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Flask SSL require and redirect decorator\n\nEasy to use package for Flask framework to check if request is served securely.\n\n> Please note, that this package does not enable SSL directly in Flask app\n> (however we support that) we recommend you to use reverse proxy or wsgi\n> server with configured SSL params.\n\n## Install\n\n```bash\npip install flask-ssl\n```\n\n## Configuration\n\nYou should have working reverse proxy server with configured SSL and SSL header information.\n\n> This plugin supports nginx and apache default configurations.\n\nFor example, for your `nginx` installation it will be:\n```\nserver {\n ...\n\n location / {\n ...\n\n proxy_set_header HTTPS on;\n proxy_set_header X-Forwarded-Ssl on;\n proxy_set_header X-Forwarded-Proto $scheme;\n }\n}\n```\n\n## Use\n```python\nfrom flask_ssl import *\n\n# {...}\n\n@ssl_require\n@app.route('/your/url/that/should/be/available/only/with/ssl')\ndef func():\n return \"Ok, served via SSL\"\n\n@ssl_redirect\n@app.route('/your/url/that/should/be/redirected/to/ssl')\ndef func2():\n return \"Ok, served via SSL\"\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Copyright\n\nThis software is developed inside Standart AG, LLC, 2019\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/standart-ag/flask-ssl", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "flask-ssl", "package_url": "https://pypi.org/project/flask-ssl/", "platform": "", "project_url": "https://pypi.org/project/flask-ssl/", "project_urls": { "Homepage": "https://github.com/standart-ag/flask-ssl" }, "release_url": "https://pypi.org/project/flask-ssl/0.0.0.1rc1/", "requires_dist": [ "flask" ], "requires_python": "", "summary": "Flask SSL require and redirect helper decorator", "version": "0.0.0.1rc1" }, "last_serial": 5221071, "releases": { "0.0.0.1rc1": [ { "comment_text": "", "digests": { "md5": "e3daaac71bb65a0ac0e74534fb2f622c", "sha256": "89339a368e9b96023cff9e313c4c38110aa36bd80326361aaeb76d9d8c9e6625" }, "downloads": -1, "filename": "flask_ssl-0.0.0.1rc1-py3-none-any.whl", "has_sig": false, "md5_digest": "e3daaac71bb65a0ac0e74534fb2f622c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3388, "upload_time": "2019-05-03T09:26:52", "url": "https://files.pythonhosted.org/packages/d1/d7/8e833744bf91bfc235b2c6162bd0ab42c089cdeb732efd9794f06653b6ae/flask_ssl-0.0.0.1rc1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e3daaac71bb65a0ac0e74534fb2f622c", "sha256": "89339a368e9b96023cff9e313c4c38110aa36bd80326361aaeb76d9d8c9e6625" }, "downloads": -1, "filename": "flask_ssl-0.0.0.1rc1-py3-none-any.whl", "has_sig": false, "md5_digest": "e3daaac71bb65a0ac0e74534fb2f622c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3388, "upload_time": "2019-05-03T09:26:52", "url": "https://files.pythonhosted.org/packages/d1/d7/8e833744bf91bfc235b2c6162bd0ab42c089cdeb732efd9794f06653b6ae/flask_ssl-0.0.0.1rc1-py3-none-any.whl" } ] }