not-kennethreitz / flask-sslify

Force SSL on your Flask app.
https://pypi.python.org/pypi/Flask-SSLify
BSD 2-Clause "Simplified" License
503 stars 85 forks source link

Support Blueprints explicitly. #20

Closed mbr closed 8 years ago

mbr commented 10 years ago

This is more of a documentation and commitment thing - it's almost possible to use the extension on a Blueprint as-is, by simply doing SSLify(my_blueprint) and working around the app.debug issue.

That seems to be a good usecase for the future (for example it may be convenient to only protect an admin area blueprint instead of the whole site).

There's not official API for extending blueprints that I know of. Maybe adding an init_blueprint() method would be a way to go?

mbr commented 10 years ago

See #22 for the minimal fix to support this.

quietlyconfident commented 10 years ago

Should this issue be closed if the patch was merged?

sfriesel commented 9 years ago

28 broke the implicit support again afaict