- Update to 3.4.5 * Security Vulnerability Fix. Two CSRF vulnerabilities were reported: qrcode and login. This release fixes the more severe of the 2 - the /login vulnerability. The QRcode issue has a much smaller risk profile since a) it is only for two-factor authentication using an authenticator app b) the qrcode is only available during the time the user is first setting up their authentication app. The QRcode issue has been fixed in 4.0. * Fixed - GET on /login and /change could return the callers authentication_token. This is a security concern since GETs don't have CSRF protection. This bug was introduced in 3.3.0. * Backwards Compatibility Concerns. Fix CSRF vulnerability on /login and /change that could return the callers authentication token. Now, callers can only get the authentication token on successful POST calls. - Update to 3.4.4 * Fix 3 regressions and a couple other bugs * Fixed - Basic Auth broken. When the unauthenticated handler was changed to provide a more uniform/consistent response - it broke using Basic Auth from a browser, since it always redirected rather than returning 401. Now, if the response headers contain WWW-Authenticate (which is set if basic @auth_required method is used), a 401 is returned. See below for backwards compatibility concerns. - As part of figuring out issue 359 - a redirect loop was found. In release 3.3.0 code was put in to redirect to :py:data:`SECURITY_POST_LOGIN_VIEW` when GET or POST was called and the caller was already authenticated. The method OBS-URL: https://build.opensuse.org/request/show/900215 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-Security-Too?expand=0&rev=12
114 lines
4.2 KiB
RPMSpec
114 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package python-Flask-Security-Too
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define skip_python2 1
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-Flask-Security-Too
|
|
Version: 3.4.5
|
|
Release: 0
|
|
Summary: Security for Flask apps
|
|
License: MIT
|
|
URL: https://github.com/jwag956/flask-security
|
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-Security-Too/Flask-Security-Too-%{version}.tar.gz
|
|
Patch0: no-mongodb.patch
|
|
Patch1: no-setup-dependencies.patch
|
|
Patch2: fix-dependencies.patch
|
|
Patch3: 0001-Do-not-raise-a-TypeError-exception-if-phone.data-is-.patch
|
|
BuildRequires: %{python_module Babel >= 1.3}
|
|
BuildRequires: %{python_module Flask >= 1.0.2}
|
|
BuildRequires: %{python_module Flask-BabelEx >= 0.9.3}
|
|
BuildRequires: %{python_module Flask-Login >= 0.4.1}
|
|
BuildRequires: %{python_module Flask-Mail >= 0.9.1}
|
|
BuildRequires: %{python_module Flask-Principal >= 0.4.0}
|
|
BuildRequires: %{python_module Flask-SQLAlchemy >= 2.3}
|
|
BuildRequires: %{python_module Flask-WTF >= 0.14.2}
|
|
BuildRequires: %{python_module PyQRCode >= 1.2}
|
|
BuildRequires: %{python_module SQLAlchemy >= 1.2.6}
|
|
BuildRequires: %{python_module Werkzeug >= 0.14.1}
|
|
BuildRequires: %{python_module argon2_cffi >= 19.1.0}
|
|
BuildRequires: %{python_module bcrypt >= 3.1.4}
|
|
BuildRequires: %{python_module cachetools >= 3.1.0}
|
|
BuildRequires: %{python_module cryptography >= 2.1.4}
|
|
BuildRequires: %{python_module email_validator >= 1.0.5}
|
|
BuildRequires: %{python_module itsdangerous >= 1.1.0}
|
|
BuildRequires: %{python_module mock >= 1.3.0}
|
|
BuildRequires: %{python_module passlib >= 1.7.1}
|
|
BuildRequires: %{python_module peewee >= 3.7.1}
|
|
BuildRequires: %{python_module phonenumbers >= 8.11.1}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module zxcvbn >= 4.4.28}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Flask >= 1.0.2
|
|
Requires: python-Flask-BabelEx >= 0.9.3
|
|
Requires: python-Flask-Login >= 0.4.1
|
|
Requires: python-Flask-Mail >= 0.9.1
|
|
Requires: python-Flask-Principal >= 0.4.0
|
|
Requires: python-Flask-WTF >= 0.14.2
|
|
Requires: python-Werkzeug >= 0.14.1
|
|
Requires: python-bcrypt >= 3.1.4
|
|
Requires: python-cryptography >= 2.1.4
|
|
Requires: python-email_validator >= 1.0.5
|
|
Requires: python-itsdangerous >= 1.1.0
|
|
Requires: python-passlib >= 1.7.1
|
|
Recommends: python-PyQRCode >= 1.2
|
|
Recommends: python-SQLAlchemy >= 1.2.6
|
|
Recommends: python-zxcvbn >= 4.4.28
|
|
Suggests: python-argon2_cffi >= 19.1.0
|
|
Suggests: python-phonenumbers >= 8.11.1
|
|
Conflicts: python-Flask-Security < 3.2.0
|
|
Obsoletes: python-Flask-Security < 3.2.0
|
|
Provides: python-Flask-Security = %{version}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Flask-Security-Too is a Python module to add security features to a Flask
|
|
application. This is a independently maintained version of Flask-Security
|
|
based on the 3.0.0 version of the original.
|
|
|
|
%prep
|
|
%setup -q -n Flask-Security-Too-%{version}
|
|
%autopatch -p1
|
|
rm pytest.ini
|
|
|
|
%if 0%{?suse_version} <= 1500
|
|
# test_trackable.py needs werkzeug.middleware.proxy_fix which is only available
|
|
# in newer werkzeug versions
|
|
rm tests/test_trackable.py
|
|
%endif
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS CHANGES.rst README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/flask_security
|
|
%{python_sitelib}/Flask_Security_Too-%{version}-py%{python_version}.egg-info
|
|
|
|
%changelog
|