* RFC7591 generate_client_info and generate_client_secret take a request
parameter.
* Add size limitation when decode JWS/JWE to prevent DoS.
* Add size limitation for DEF JWE zip algorithm.
- Update to 1.6.4
* fix(jose): prevent public/unprotected header overwriting protected header
by @lepture in #809
* Fix InsecureTransportError raising by @azmeuk in #810
* Add conventional-commits pre-commit hook by @azmeuk in #811
* Fix response_mode=form_post with Starlette client by @azmeuk in #812
* Specify README.md as project long description by @EpicWink in #817
* Migrate tests to pytest paradigm by @azmeuk in #813
* jose/jws: Reject unprotected ‘crit’ and enforce type; add tests
by @AL-Cybision in #823
* Use explicit *.test urls in unit tests by @azmeuk in #824
- Update to 1.6.3
* Add diff-cover check in GHA by @azmeuk in #803
* Run GHA unit tests with uv by @azmeuk in #805
* Move from pre-commit to prek by @azmeuk in #804
* Sign OIDC id_token according to id_token_signed_response_alg client
metadata by @azmeuk in #802
- Update to 1.6.2
* Allow insecure transport for 127.0.0.1 for debugging
by @geigerzaehler in #788
* Raise a MissingCodeError when code parameter is missing by @lepture in #786
* Temporarily restore OAuth2Request body parameter by @azmeuk in #791
* Raise MissingCodeException when code parameter is missing
by @lepture in #794
* Fix id_token generation with EdDSA alg by @azmeuk in #800
- Update test requirements
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Authlib?expand=0&rev=54
92 lines
3.1 KiB
RPMSpec
92 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package python-Authlib
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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 modname authlib
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-Authlib
|
|
Version: 1.6.5
|
|
Release: 0
|
|
Summary: Python library for building OAuth and OpenID Connect servers
|
|
License: BSD-3-Clause
|
|
URL: https://authlib.org/
|
|
Source: https://github.com/lepture/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.9}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module anyio}
|
|
BuildRequires: %{python_module Django}
|
|
BuildRequires: %{python_module Flask-SQLAlchemy}
|
|
BuildRequires: %{python_module Flask}
|
|
BuildRequires: %{python_module SQLAlchemy}
|
|
BuildRequires: %{python_module Werkzeug}
|
|
BuildRequires: %{python_module cachelib}
|
|
BuildRequires: %{python_module cryptography}
|
|
BuildRequires: %{python_module httpx}
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest-django}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-multipart}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module starlette}
|
|
BuildRequires: %{python_module typing_extensions}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
Requires: python-cryptography
|
|
Suggests: python-requests
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python library for building OAuth and OpenID Connect servers.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
# Remove the file containing the commercial license so licensedigger
|
|
# doesn't complain about the dual license
|
|
rm COMMERCIAL-LICENSE
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1
|
|
$python -mpytest tests/core
|
|
$python -mpytest tests/flask
|
|
# gh#lepture/authlib#456
|
|
# $python -mpytest tests/jose -k 'not (test_dir_alg_xc20p or test_xc20p_content_encryption_decryption)'
|
|
$python -mpytest tests/jose
|
|
export DJANGO_SETTINGS_MODULE=tests.django_settings
|
|
$python -mpytest tests/clients
|
|
$python -mpytest tests/django
|
|
}
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/%{modname}
|
|
%{python_sitelib}/[Aa]uthlib-%{version}.dist-info
|
|
|
|
%changelog
|