forked from pool/python-Authlib
Compare commits
21 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5ab3f7e034 | |||
| 66d63d825d | |||
| 75a20f7b31 | |||
| 154dac9401 | |||
| c7640e88eb | |||
| 0a0f318345 | |||
| abb85186ea | |||
| c6fbd736ab | |||
| 4fc115cef4 | |||
| 5b44752bbc | |||
| 10fbcc3490 | |||
| 4d5725d65e | |||
| e3b8113fe1 | |||
| 5c35145c53 | |||
| 67866456e4 | |||
| b5b2619693 | |||
| 8bb222bc0b | |||
| 667a364048 | |||
| f2c60b332a | |||
| 59153e6f7b | |||
| 8ca146f2a7 |
39
767-skip-xc20p-tests.patch
Normal file
39
767-skip-xc20p-tests.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
From 8f823db3fe552b8337cce1eb4ec4207411c63d0b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=C3=89loi=20Rivard?= <eloi@yaal.coop>
|
||||
Date: Thu, 1 May 2025 10:04:21 +0200
|
||||
Subject: [PATCH] fix: skip xc20p unit tests when unavailable in cryptodome
|
||||
|
||||
---
|
||||
tests/jose/test_chacha20.py | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
Index: authlib-1.5.2/tests/jose/test_chacha20.py
|
||||
===================================================================
|
||||
--- authlib-1.5.2.orig/tests/jose/test_chacha20.py 2025-04-02 12:30:25.000000000 +0200
|
||||
+++ authlib-1.5.2/tests/jose/test_chacha20.py 2025-05-02 18:21:41.958090585 +0200
|
||||
@@ -1,5 +1,7 @@
|
||||
import unittest
|
||||
|
||||
+import pytest
|
||||
+
|
||||
from authlib.jose import JsonWebEncryption
|
||||
from authlib.jose import OctKey
|
||||
from authlib.jose.drafts import register_jwe_draft
|
||||
@@ -22,6 +24,8 @@
|
||||
self.assertRaises(ValueError, jwe.serialize_compact, protected, b"hello", key2)
|
||||
|
||||
def test_dir_alg_xc20p(self):
|
||||
+ pytest.importorskip("Cryptodome.Cipher.ChaCha20_Poly1305")
|
||||
+
|
||||
jwe = JsonWebEncryption()
|
||||
key = OctKey.generate_key(256, is_private=True)
|
||||
protected = {"alg": "dir", "enc": "XC20P"}
|
||||
@@ -35,6 +39,8 @@
|
||||
self.assertRaises(ValueError, jwe.serialize_compact, protected, b"hello", key2)
|
||||
|
||||
def test_xc20p_content_encryption_decryption(self):
|
||||
+ pytest.importorskip("Cryptodome.Cipher.ChaCha20_Poly1305")
|
||||
+
|
||||
# https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha-03#appendix-A.3.1
|
||||
enc = JsonWebEncryption.ENC_REGISTRY["XC20P"]
|
||||
|
||||
3
authlib-1.5.2.tar.gz
Normal file
3
authlib-1.5.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f94a1259f69645d6d6c4ecf9a8f32a9c3e2b2d2e6b8163cc90bc0e4a7245939
|
||||
size 331162
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d714698f818fd478161666c319e275f9ffedee3259b9a259360462734c24b5a2
|
||||
size 341053
|
||||
@@ -1,28 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 5 07:34:40 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 1.6.1
|
||||
* Filter key set with additional "alg" and "use" parameters.
|
||||
- Fix bogus version number in previous changelog entry
|
||||
- Rename README.rst to README.md in %files section
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 06:26:39 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 1.6.0
|
||||
* Fix issue when RFC9207 is enabled and the authorization endpoint
|
||||
response is not a redirection. pull request #733
|
||||
* Fix missing state parameter in authorization error responses.
|
||||
issue #525
|
||||
* Support for acr and amr claims in id_token. issue #734
|
||||
* Support for the none JWS algorithm.
|
||||
* Fix response_types strict order during dynamic client
|
||||
registration. issue #760
|
||||
* Implement RFC9101 The OAuth 2.0 Authorization Framework:
|
||||
JWT-Secured Authorization Request (JAR). issue #723
|
||||
* OIDC UserInfo endpoint support. issue #459
|
||||
- Drop 767-skip-xc20p-tests.patch, merged upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 2 21:29:54 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Authlib
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,12 +19,15 @@
|
||||
%define modname authlib
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-Authlib
|
||||
Version: 1.6.1
|
||||
Version: 1.5.2
|
||||
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
|
||||
# PATCH-FIX-UPSTREAM 767-skip-xc20p-tests.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# skip unavailable tests
|
||||
Patch0: 767-skip-xc20p-tests.patch
|
||||
BuildRequires: %{python_module base >= 3.9}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -82,7 +85,7 @@ $python -mpytest tests/clients
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/%{modname}
|
||||
%{python_sitelib}/[Aa]uthlib-%{version}.dist-info
|
||||
|
||||
Reference in New Issue
Block a user