./www/py-flask-security, Simple security for Flask apps

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 5.6.0nb1, Package name: py312-flask-security-5.6.0nb1, Maintainer: kleink

Flask-Security allows you to quickly add common security mechanisms
to your Flask application.


Required to run:
[devel/py-setuptools] [www/py-flask] [www/py-flask-wtf] [www/py-flask-login] [www/py-flask-babelex] [security/py-itsdangerous] [www/py-flask-principal] [www/py-flask-mail] [security/py-passlib] [lang/python37]

Required to build:
[devel/py-babel] [pkgtools/cwrappers] [devel/py-test-runner]

Master sites:

Filesize: 677.462 KB

Version history: (Expand)


CVS history: (Expand)


   2025-02-23 21:55:13 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-flask-security: adapt for flit_core 3.11.

Bump PKGREVISION.
   2025-02-12 17:32:00 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-flask-security: updated to 5.6.0

Version 5.6.0

Features & Improvements

- (:issue:`1038`) Add support for 'secret_key' rotation (jamesejr)
- (:issue:`980`) Add support for username recovery in simple login flows (jamesejr)
- (:issue:`1055`) Add support for changing username
- (:pr:`1048`) Add support for Python 3.13
- (:issue:`1043`) Unify Register forms (and split out re-type password option) \ 
Please read :ref:`register_form_migration`.

Fixes

- (:pr:`1062`) Fix duplicate HTML ids in templates.
- (:pr:`1067`) Fix more duplicate HTML ids in templates.
- (:issue:`1064`) Ensure templates pass W3C validation (see below)

Docs and Chores

- (:pr:`1052`) Remove deprecated TWO_FACTOR configuration variables
- (:pr:`1069`) Update ES and IT translations (gissimo)
- (:pr:`1071`) Improve templates - two-factor is hyphenated, re-authenticate is not.
  Also try to embed links into xlatable strings.
   2025-01-29 13:08:12 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-flask-security: updated to 5.5.2

Version 5.5.2
-------------

Released August 5, 2024

More attempts to upload to pypi both flask-security and flask-security-too.
No code changes - however the build manifest changed so the source distribution
contents might be slightly different.

Docs and Chores
+++++++++++++++
- (:pr:`1019`) Separate publish workflows for each pypi package

Version 5.5.1
-------------

Released August 1, 2024

I am pleased to announce that Flask-Security-Too is now part of pallets-eco and \ 
has returned
to be released as 'Flask-Security'. For the foreseeable future, we will publish \ 
the same release to both
Flask-Security and Flask-Security-Too on PyPI.

There are no code changes.

Docs and Chores
+++++++++++++++
- (:pr:`1015`) Convert docs, links, badges, etc to pallets-eco

Version 5.5.0
-------------

Released July 24, 2024

Features & Improvements
+++++++++++++++++++++++
- (:issue:`956`) Add support for changing registered user's email \ 
(:py:data:`SECURITY_CHANGE_EMAIL`).
- (:issue:`944`) Change default password hash to argon2 (was bcrypt). See below \ 
for details.
- (:pr:`990`) Add freshness capability to auth tokens (enables /us-setup to \ 
function w/ just auth tokens).
- (:pr:`991`) Add support to /tf-setup to not require sessions (use a state token).
- (:issue:`994`) Add support for Flask-SQLAlchemy-Lite - including new \ 
all-inclusive models
  that conform to sqlalchemy latest best-practice (type-annotated).
- (:pr:`1007`) Convert other sqlalchemy-based datastores from legacy \ 
'model.query' to best-practice 'select'
- (:issue:`983`) Allow applications more flexibility defining allowable redirects.

Fixes
+++++
- (:pr:`972`) Set :py:data:`SECURITY_CSRF_COOKIE` at beginning (GET /login) of \ 
authentication
  ritual - just as we return the CSRF token. (thanks @e-goto)
- (:issue:`973`) login and unified sign in should handle GET for authenticated \ 
user consistently.
- (:pr:`995`) Don't show sms options if not defined in US_ENABLED_METHODS. \ 
(fredipevcin)
- (:pr:`1009`) Change :py:data:`SECURITY_DEPRECATED_HASHING_SCHEMES` to \ 
``["auto"]``.

Docs and Chores
+++++++++++++++
- (:pr:`979`) Update Russian translations (ademaro)
- (:pr:`1004`) Update ES and IT translations (gissimo)
- (:pr:`981` and :pr:`977`) Improve docs
- (:pr:`992`) The long deprecated `get_token_status` is no longer exported
- (:pr:`992`) Drop Python 3.8 support.
- (:issue:`1001`) Try a different approach to typing User and Role models.

Backwards Compatibility Concerns
+++++++++++++++++++++++++++++++++
- Notes around the change to argon2 as the default password hash:
    - applications should add the argon2_cffi package to their requirements (it \ 
is included in the flask_security[common] extras).
    - leave bcrypt installed so that old passwords still work.
    - the default configuration will re-hash passwords with argon2 upon first use.
- Changes to /tf-setup
    The old path - using state set in the session still works as before. The new \ 
path is
    just for the case an authenticated user wants to change their 2FA setup.
- Changes to sqlalchemy-based datastores
    Flask-Security no longer uses the legacy model.query - all DB access is done via
    `select(xx).where(xx)`. As a result the find_user() method now only takes a \ 
SINGLE
    column:value from its kwargs - in prior releases all kwargs were passed into \ 
the query.filter.
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-08-10 11:42:16 by Thomas Klausner | Files touched by this commit (4)
Log message:
py-flask-security: convert to wheel.mk

Remove unused dependencies.

Bump PKGREVISION.
   2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319)
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
   2022-04-29 13:56:47 by Thomas Klausner | Files touched by this commit (29) | Package updated
Log message:
*: mark py-flask dependencies as not-for-python-2.x

I'll update py-flask soon; the current pkgsrc of py-flask version
is broken and all newer versions do not support python 2.x
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS