CHANGES.md
Unreleased
__about__ module and __version__ attribute. Use importlib.metadata
to get library information instead. #701pyproject.toml project metadata. Use flit_core instead of setuptools as
build backend.datetime.now(timezone.utc) instead of deprecated datetime.utcnow. #758X-Forwarded-For header, always use request.remote_addr,
requiring the developer to configure ProxyFix appropriately. #700LOGIN_DISABLED config. #697Released 2023-10-30
Released on July 25th, 2022
expand_login_view that attempted to preserve a
dynamic subdomain value. Such values should be handled using
app.url_value_preprocessor and app.url_defaults. #691request_loader instead of header_loader.user_loaded_from_request instead of user_loaded_from_header.app.config["LOGIN_DISABLED"] instead of _login_disabled.init_app instead of setup_app.Released on May 1st, 2022
login_remembered returns True if the current
login is remembered across sessions. #654Released on March 30th, 2022
expand_login_view to allow for subdomain and host matching for login_view #462request_loader and user_loader callback functions #472HttpOnly, matching Flask session cookie #488unauthorized_handler #492assertEqual deprecation warning in pytest #518collections deprecation warning under Python 3.8 #525safe_str_cmp with hmac.compare_digest #585REMEMBER_COOKIE_SAMESITE config #577from flask_login import * behavior, although note that
import * is not usually a good pattern in code. #485UserMixin.is_authenticated will return whatever is_active returns
by default. This prevents inactive users from logging in. #486, #530Released on February 9th, 2020
flask_login.FlaskLoginClient.
You can use this to write clearer automated tests. #431Released on December 2nd, 2017
Released on October 26th, 2016
login_manager.token_handler function, get_auth_token method
on the User class, and the utils.make_secure_token utility function have
been removed to prevent users from creating insecure auth implementations.
Use the Alternative Tokens example from the docs instead. #291Released on October 8th, 2015
Released on September 30th, 2015
Released on September 10th, 2015
is_authenticated, is_active, and is_anonymous members of
the user class are now properties, not methods. Applications should update
their user classes accordingly.Released on May 19th, 2014
Released on March 9th, 2014
request_loader introduced; ability to log users in via
customized callback over request.has_request_context.Released on December 28th, 2013
Released on December 21st 2013
current_user
local. This breaks any previous direct access to _request_ctx.top.user.
This is because user is not loaded until current_user is accessed.UserMixin hashing.Prior to 0.2.8, no proper changelog was kept.