You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flask's before_first_request function is going away. Publ currently uses it to bootstrap Authl's configuration at startup time in a user-friendly way; Authl's configuration requires that the Flask app be fully-formed (so that the secret_key property is available) but that it not yet be serving up any requests (so that authl.flask can add the _login and _logout routes).
There are three paths forward, both fraught with peril:
Add a finalize_setup method to the Publ application object that runs the previous before_first_request functionality
Refactor Publ to once again be a library that spawns a standalone Flask app rather than inheriting from it
Have Publ roll its own Authl routes, rather than using authl.flask
Option 2 is the best long-term one, but that was the original design to Publ, and I changed it to be inheritance-based rather than compositional for some reason that I can't recall (probably something to address issues with startup order and PonyORM's global state, but who even knows anymore).
Option 1 is definitely the easiest to do, though, and could probably be done as an expedient option in advance of Flask 2.3.
Activity
fluffy-critter commentedon May 2, 2023
Now that Flask 2.3 is a required update this should be done ASAP.